mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
fix decoding of samples.mplayerhq.hu/game-formats/idroq/demoEnd.roq
closes issue78 Originally committed as revision 10079 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
aee481cebe
commit
b0f3382873
@ -174,12 +174,17 @@ static int roq_decode_frame(AVCodecContext *avctx,
|
||||
uint8_t *buf, int buf_size)
|
||||
{
|
||||
RoqContext *s = avctx->priv_data;
|
||||
int copy= !s->current_frame->data[0];
|
||||
|
||||
if (avctx->reget_buffer(avctx, s->current_frame)) {
|
||||
av_log(avctx, AV_LOG_ERROR, " RoQ: get_buffer() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(copy)
|
||||
av_picture_copy((AVPicture*)s->current_frame, (AVPicture*)s->last_frame,
|
||||
avctx->pix_fmt, avctx->width, avctx->height);
|
||||
|
||||
s->buf = buf;
|
||||
s->size = buf_size;
|
||||
roqvideo_decode_frame(s);
|
||||
|
Loading…
Reference in New Issue
Block a user