Skip to content
Snippets Groups Projects
Commit b3dfda8a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '711c9701'


* commit '711c9701':
  rv34: Check the return value from ff_rv34_decode_init

Conflicts:
	libavcodec/rv30.c
	libavcodec/rv40.c

See: b86651a2
Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents 2c8d876d 711c9701
No related branches found
No related tags found
No related merge requests found
...@@ -251,8 +251,7 @@ static av_cold int rv30_decode_init(AVCodecContext *avctx) ...@@ -251,8 +251,7 @@ static av_cold int rv30_decode_init(AVCodecContext *avctx)
int ret; int ret;
r->rv30 = 1; r->rv30 = 1;
ret = ff_rv34_decode_init(avctx); if ((ret = ff_rv34_decode_init(avctx)) < 0)
if (ret < 0)
return ret; return ret;
if(avctx->extradata_size < 2){ if(avctx->extradata_size < 2){
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
......
...@@ -550,8 +550,7 @@ static av_cold int rv40_decode_init(AVCodecContext *avctx) ...@@ -550,8 +550,7 @@ static av_cold int rv40_decode_init(AVCodecContext *avctx)
int ret; int ret;
r->rv30 = 0; r->rv30 = 0;
ret = ff_rv34_decode_init(avctx); if ((ret = ff_rv34_decode_init(avctx)) < 0)
if (ret < 0)
return ret; return ret;
if(!aic_top_vlc.bits) if(!aic_top_vlc.bits)
rv40_init_tables(); rv40_init_tables();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment