Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
e9174ba4
Commit
e9174ba4
authored
Jul 23, 2003
by
Michael Niedermayer
Browse files
last frame decoding fix
Originally committed as revision 2074 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a15e68de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
libavcodec/h263dec.c
libavcodec/h263dec.c
+10
-2
libavcodec/mpeg12.c
libavcodec/mpeg12.c
+4
-5
No files found.
libavcodec/h263dec.c
View file @
e9174ba4
...
...
@@ -401,9 +401,17 @@ uint64_t time= rdtsc();
s
->
flags
=
avctx
->
flags
;
*
data_size
=
0
;
/* no supplementary picture */
/* no supplementary picture */
if
(
buf_size
==
0
)
{
/* special case for last picture */
if
(
s
->
low_delay
==
0
&&
s
->
next_picture_ptr
)
{
*
pict
=
*
(
AVFrame
*
)
s
->
next_picture_ptr
;
s
->
next_picture_ptr
=
NULL
;
*
data_size
=
sizeof
(
AVFrame
);
}
return
0
;
}
...
...
libavcodec/mpeg12.c
View file @
e9174ba4
...
...
@@ -2231,12 +2231,11 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
*
data_size
=
0
;
/* special case for last picture */
if
(
buf_size
==
0
)
{
if
(
s2
->
picture_number
>
0
)
{
*
picture
=
*
(
AVFrame
*
)
&
s2
->
next_picture
;
if
(
buf_size
==
0
&&
s2
->
low_delay
==
0
&&
s2
->
next_picture_ptr
)
{
*
picture
=
*
(
AVFrame
*
)
s2
->
next_picture_ptr
;
s2
->
next_picture
_ptr
=
NULL
;
*
data_size
=
sizeof
(
AVFrame
);
}
*
data_size
=
sizeof
(
AVFrame
);
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