Commit d4405fa3 authored by michaelni's avatar michaelni

mpeg1 decoding fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1917 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7923f2fd
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment