projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73a19b2
)
mpeg1 decoding fix
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 29 May 2003 21:34:25 +0000
(21:34 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 29 May 2003 21:34:25 +0000
(21:34 +0000)
Originally committed as revision 1917 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index 2cf986798ba407e39201ed1aa6bbc46e41d2fd3e..9a22d869f1fd6c80b31ae3858f153d25fa8760ab 100644
(file)
--- a/
libavcodec/mpegvideo.c
+++ b/
libavcodec/mpegvideo.c
@@
-2924,7
+2924,8
@@
int ff_combine_frame( MpegEncContext *s, int next, uint8_t **buf, int *buf_size)
pc->index += *buf_size;
return -1;
}
-
+
+ *buf_size=
pc->overread_index= pc->index + next;
/* append to buffer */
@@
-2934,7
+2935,6
@@
int ff_combine_frame( MpegEncContext *s, int next, uint8_t **buf, int *buf_size)
memcpy(&pc->buffer[pc->index], *buf, next + FF_INPUT_BUFFER_PADDING_SIZE );
pc->index = 0;
*buf= pc->buffer;
- *buf_size= pc->last_index + next;
}
/* store overread bytes */