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
94c61cd9
Commit
94c61cd9
authored
Sep 07, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo: free_context_frame() cannot fail, make it return void
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
de1f0c94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
mpegvideo.c
libavcodec/mpegvideo.c
+2
-5
No files found.
libavcodec/mpegvideo.c
View file @
94c61cd9
...
...
@@ -1403,7 +1403,7 @@ av_cold int ff_mpv_common_init(MpegEncContext *s)
* Is used during resolution changes to avoid a full reinitialization of the
* codec.
*/
static
int
free_context_frame
(
MpegEncContext
*
s
)
static
void
free_context_frame
(
MpegEncContext
*
s
)
{
int
i
,
j
,
k
;
...
...
@@ -1450,8 +1450,6 @@ static int free_context_frame(MpegEncContext *s)
av_freep
(
&
s
->
bits_tab
);
s
->
linesize
=
s
->
uvlinesize
=
0
;
return
0
;
}
int
ff_mpv_common_frame_size_change
(
MpegEncContext
*
s
)
...
...
@@ -1468,8 +1466,7 @@ int ff_mpv_common_frame_size_change(MpegEncContext *s)
}
else
free_duplicate_context
(
s
);
if
((
err
=
free_context_frame
(
s
))
<
0
)
return
err
;
free_context_frame
(
s
);
if
(
s
->
picture
)
for
(
i
=
0
;
i
<
MAX_PICTURE_COUNT
;
i
++
)
{
...
...
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