1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

lavc/mmvideo: forward reget_buffer return value in mm_decode_frame()

This commit is contained in:
Stefano Sabatini 2012-07-25 08:43:56 +02:00
parent ff584803b7
commit f3bd6fa7a8

View File

@ -188,9 +188,9 @@ static int mm_decode_frame(AVCodecContext *avctx,
buf_size -= MM_PREAMBLE_SIZE;
bytestream2_init(&s->gb, buf, buf_size);
if (avctx->reget_buffer(avctx, &s->frame) < 0) {
if ((res = avctx->reget_buffer(avctx, &s->frame)) < 0) {
av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
return -1;
return res;
}
switch(type) {