Commit b1fee1be authored by Stefano Sabatini's avatar Stefano Sabatini

lavc/roqvideodec: propagate reget_buffer() error code

parent d2c70ec0
......@@ -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)
......
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