Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
5f9cbad6
Commit
5f9cbad6
authored
Oct 26, 2012
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port MPlayer fixes for coverity issues in libmpcodecs.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
425c30dd
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
7 deletions
+10
-7
vf_divtc.c
libavfilter/libmpcodecs/vf_divtc.c
+1
-1
vf_down3dright.c
libavfilter/libmpcodecs/vf_down3dright.c
+1
-1
vf_ilpack.c
libavfilter/libmpcodecs/vf_ilpack.c
+1
-0
vf_phase.c
libavfilter/libmpcodecs/vf_phase.c
+2
-0
vf_softpulldown.c
libavfilter/libmpcodecs/vf_softpulldown.c
+1
-2
vf_telecine.c
libavfilter/libmpcodecs/vf_telecine.c
+1
-0
vf_tinterlace.c
libavfilter/libmpcodecs/vf_tinterlace.c
+3
-3
No files found.
libavfilter/libmpcodecs/vf_divtc.c
View file @
5f9cbad6
...
...
@@ -413,7 +413,7 @@ static int analyze(struct vf_priv_s *p)
n
++
;
}
if
(
!
n
)
if
(
n
<=
15
)
{
mp_msg
(
MSGT_VFILTER
,
MSGL_FATAL
,
"%s: Empty 2-pass log file.
\n
"
,
vf_info_divtc
.
name
);
...
...
libavfilter/libmpcodecs/vf_down3dright.c
View file @
5f9cbad6
...
...
@@ -103,7 +103,7 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts)
// hope we'll get DR buffer:
dmpi
=
vf_get_image
(
vf
->
next
,
IMGFMT_YV12
,
MP_IMGTYPE_TEMP
,
MP_IMGFLAG_ACCEPT_STRIDE
|
(
vf
->
priv
->
scaleh
==
1
)
?
MP_IMGFLAG_READABLE
:
0
,
(
(
vf
->
priv
->
scaleh
==
1
)
?
MP_IMGFLAG_READABLE
:
0
)
,
mpi
->
w
*
vf
->
priv
->
scalew
,
mpi
->
h
/
vf
->
priv
->
scaleh
-
vf
->
priv
->
skipline
);
...
...
libavfilter/libmpcodecs/vf_ilpack.c
View file @
5f9cbad6
...
...
@@ -437,6 +437,7 @@ static int vf_open(vf_instance_t *vf, char *args)
mp_msg
(
MSGT_VFILTER
,
MSGL_WARN
,
"ilpack: unknown mode %d (fallback to linear)
\n
"
,
vf
->
priv
->
mode
);
/* Fallthrough */
case
1
:
vf
->
priv
->
pack
[
0
]
=
pack_li_0
;
vf
->
priv
->
pack
[
1
]
=
pack_li_1
;
...
...
libavfilter/libmpcodecs/vf_phase.c
View file @
5f9cbad6
...
...
@@ -242,6 +242,8 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts)
static
void
uninit
(
struct
vf_instance
*
vf
)
{
if
(
!
vf
->
priv
)
return
;
free
(
vf
->
priv
->
buf
[
0
]);
free
(
vf
->
priv
->
buf
[
1
]);
free
(
vf
->
priv
->
buf
[
2
]);
...
...
libavfilter/libmpcodecs/vf_softpulldown.c
View file @
5f9cbad6
...
...
@@ -144,12 +144,11 @@ static void uninit(struct vf_instance *vf)
static
int
vf_open
(
vf_instance_t
*
vf
,
char
*
args
)
{
struct
vf_priv_s
*
p
;
vf
->
config
=
config
;
vf
->
put_image
=
put_image
;
vf
->
uninit
=
uninit
;
vf
->
default_reqs
=
VFCAP_ACCEPT_STRIDE
;
vf
->
priv
=
p
=
calloc
(
1
,
sizeof
(
struct
vf_priv_s
));
vf
->
priv
=
calloc
(
1
,
sizeof
(
struct
vf_priv_s
));
vf
->
priv
->
state
=
0
;
return
1
;
}
...
...
libavfilter/libmpcodecs/vf_telecine.c
View file @
5f9cbad6
...
...
@@ -62,6 +62,7 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts)
dmpi
->
stride
[
2
]
*
2
,
mpi
->
stride
[
2
]
*
2
);
}
ret
=
vf_next_put_image
(
vf
,
dmpi
,
MP_NOPTS_VALUE
);
/* Fallthrough */
case
1
:
case
2
:
memcpy_pic
(
dmpi
->
planes
[
0
],
mpi
->
planes
[
0
],
mpi
->
w
,
mpi
->
h
,
...
...
libavfilter/libmpcodecs/vf_tinterlace.c
View file @
5f9cbad6
...
...
@@ -218,10 +218,10 @@ static int vf_open(vf_instance_t *vf, char *args)
vf
->
uninit
=
uninit
;
vf
->
default_reqs
=
VFCAP_ACCEPT_STRIDE
;
vf
->
priv
=
p
=
calloc
(
1
,
sizeof
(
struct
vf_priv_s
));
vf
->
priv
->
mode
=
0
;
p
->
mode
=
0
;
if
(
args
)
sscanf
(
args
,
"%d"
,
&
vf
->
priv
->
mode
);
vf
->
priv
->
frame
=
0
;
sscanf
(
args
,
"%d"
,
&
p
->
mode
);
p
->
frame
=
0
;
return
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment