cljr: return a more sensible value when encountering invalid headers

pull/2/head
Diego Biurrun 13 years ago
parent 163682fab3
commit 1c45c64c9d
  1. 2
      libavcodec/cljr.c

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

Loading…
Cancel
Save