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
f0a88d4d
Commit
f0a88d4d
authored
Oct 23, 2015
by
Michael Niedermayer
Committed by
Vittorio Giovara
Oct 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo_enc: Factor new_picture unref out
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
533a6198
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 @
f0a88d4d
...
@@ -1382,12 +1382,13 @@ static int select_input_picture(MpegEncContext *s)
...
@@ -1382,12 +1382,13 @@ static int select_input_picture(MpegEncContext *s)
}
}
}
}
no_output_pic:
no_output_pic:
ff_mpeg_unref_picture
(
s
->
avctx
,
&
s
->
new_picture
);
if
(
s
->
reordered_input_picture
[
0
])
{
if
(
s
->
reordered_input_picture
[
0
])
{
s
->
reordered_input_picture
[
0
]
->
reference
=
s
->
reordered_input_picture
[
0
]
->
reference
=
s
->
reordered_input_picture
[
0
]
->
f
->
pict_type
!=
s
->
reordered_input_picture
[
0
]
->
f
->
pict_type
!=
AV_PICTURE_TYPE_B
?
3
:
0
;
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
])))
if
((
ret
=
ff_mpeg_ref_picture
(
s
->
avctx
,
&
s
->
new_picture
,
s
->
reordered_input_picture
[
0
])))
return
ret
;
return
ret
;
...
@@ -1428,8 +1429,6 @@ no_output_pic:
...
@@ -1428,8 +1429,6 @@ no_output_pic:
return
ret
;
return
ret
;
s
->
picture_number
=
s
->
new_picture
.
f
->
display_picture_number
;
s
->
picture_number
=
s
->
new_picture
.
f
->
display_picture_number
;
}
else
{
ff_mpeg_unref_picture
(
s
->
avctx
,
&
s
->
new_picture
);
}
}
return
0
;
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