diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-09-09 11:11:43 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-09-24 12:02:31 +0200 |
commit | b1fee1be61ab86b43b1bc4391a351d601b2ba851 (patch) | |
tree | 61ddf0934099effd4a192d5932c30242aeaf880f /libavcodec/roqvideodec.c | |
parent | d2c70ec07f6580af8584c4b4fc6d51abd5913356 (diff) | |
download | ffmpeg-b1fee1be61ab86b43b1bc4391a351d601b2ba851.tar.gz |
lavc/roqvideodec: propagate reget_buffer() error code
Diffstat (limited to 'libavcodec/roqvideodec.c')
-rw-r--r-- | libavcodec/roqvideodec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c index 1e2915e923..cd4eb2aae7 100644 --- a/libavcodec/roqvideodec.c +++ b/libavcodec/roqvideodec.c @@ -188,11 +188,12 @@ static int roq_decode_frame(AVCodecContext *avctx, int buf_size = avpkt->size; RoqContext *s = avctx->priv_data; int copy= !s->current_frame->data[0]; + int ret; s->current_frame->reference = 3; - if (avctx->reget_buffer(avctx, s->current_frame)) { + if ((ret = avctx->reget_buffer(avctx, s->current_frame)) < 0) { av_log(avctx, AV_LOG_ERROR, " RoQ: get_buffer() failed\n"); - return -1; + return ret; } if(copy) |