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
b379e1d6
Commit
b379e1d6
authored
Oct 18, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo_enc: Factor new_picture unref out
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
002b0499
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+2
-3
No files found.
libavcodec/mpegvideo_enc.c
View file @
b379e1d6
...
...
@@ -1558,12 +1558,13 @@ static int select_input_picture(MpegEncContext *s)
}
}
no_output_pic:
ff_mpeg_unref_picture
(
s
->
avctx
,
&
s
->
new_picture
);
if
(
s
->
reordered_input_picture
[
0
])
{
s
->
reordered_input_picture
[
0
]
->
reference
=
s
->
reordered_input_picture
[
0
]
->
f
->
pict_type
!=
AV_PICTURE_TYPE_B
?
3
:
0
;
ff_mpeg_unref_picture
(
s
->
avctx
,
&
s
->
new_picture
);
if
((
ret
=
ff_mpeg_ref_picture
(
s
->
avctx
,
&
s
->
new_picture
,
s
->
reordered_input_picture
[
0
])))
return
ret
;
...
...
@@ -1604,8 +1605,6 @@ no_output_pic:
return
ret
;
s
->
picture_number
=
s
->
new_picture
.
f
->
display_picture_number
;
}
else
{
ff_mpeg_unref_picture
(
s
->
avctx
,
&
s
->
new_picture
);
}
return
0
;
}
...
...
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