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
3d71b1f8
Commit
3d71b1f8
authored
Apr 15, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo_enc: Simplify picture allocation
parent
0251c9be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+5
-7
No files found.
libavcodec/mpegvideo_enc.c
View file @
3d71b1f8
...
...
@@ -1006,14 +1006,12 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg)
if
(
direct
)
{
if
((
ret
=
av_frame_ref
(
pic
->
f
,
pic_arg
))
<
0
)
return
ret
;
if
(
ff_alloc_picture
(
s
,
pic
,
1
)
<
0
)
{
return
-
1
;
}
}
else
{
if
(
ff_alloc_picture
(
s
,
pic
,
0
)
<
0
)
{
return
-
1
;
}
}
ret
=
ff_alloc_picture
(
s
,
pic
,
direct
);
if
(
ret
<
0
)
return
ret
;
if
(
!
direct
)
{
if
(
pic
->
f
->
data
[
0
]
+
INPLACE_OFFSET
==
pic_arg
->
data
[
0
]
&&
pic
->
f
->
data
[
1
]
+
INPLACE_OFFSET
==
pic_arg
->
data
[
1
]
&&
pic
->
f
->
data
[
2
]
+
INPLACE_OFFSET
==
pic_arg
->
data
[
2
])
{
...
...
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