Commit f3bd6fa7 authored by Stefano Sabatini's avatar Stefano Sabatini

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

parent ff584803
...@@ -188,9 +188,9 @@ static int mm_decode_frame(AVCodecContext *avctx, ...@@ -188,9 +188,9 @@ static int mm_decode_frame(AVCodecContext *avctx,
buf_size -= MM_PREAMBLE_SIZE; buf_size -= MM_PREAMBLE_SIZE;
bytestream2_init(&s->gb, buf, buf_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"); av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
return -1; return res;
} }
switch(type) { switch(type) {
......
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