summaryrefslogtreecommitdiff
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-07-23 09:58:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-07-23 09:58:02 +0000
commite9174ba460aee4dd6b90ad598ebbaea683f774bf (patch)
treeae4199ee59d80d9cd6b25b43d05f96aaf4cdef2a /libavcodec/h263dec.c
parenta15e68deb6a0578941c8471c4b2b9b03f920ffab (diff)
last frame decoding fix
Originally committed as revision 2074 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index aee93e82f1..01defcd721 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -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;
}