Commit 1c45c64c authored by Diego Biurrun's avatar Diego Biurrun

cljr: return a more sensible value when encountering invalid headers

parent 163682fa
......@@ -61,7 +61,7 @@ static int decode_frame(AVCodecContext *avctx,
if(buf_size/avctx->height < avctx->width) {
av_log(avctx, AV_LOG_ERROR, "Resolution larger than buffer size. Invalid header?\n");
return -1;
return AVERROR_INVALIDDATA;
}
p->reference= 0;
......
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