Merge commit 'cee4490b521fd0d02476d46aa2598af24fb8d686'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Dec 2014 12:36:25 +0000 (13:36 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Dec 2014 12:39:41 +0000 (13:39 +0100)
* commit 'cee4490b521fd0d02476d46aa2598af24fb8d686':
  on2avc: check number of channels

See: 550f3e9df3410b3dd975e590042c0d83e20a8da3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/on2avc.c

@@@ -923,6 -918,10 +923,7 @@@ static av_cold int on2avc_decode_init(A
          av_log(avctx, AV_LOG_ERROR, "0x500 version should be mono\n");
          return AVERROR_INVALIDDATA;
      }
 -    if (avctx->channels > 2) {
 -        av_log(avctx, AV_LOG_ERROR, "Only 1 or 2 channels are supported.\n");
 -        return AVERROR(EINVAL);
 -    }
++
      if (avctx->channels == 2)
          av_log(avctx, AV_LOG_WARNING,
                 "Stereo mode support is not good, patch is welcome\n");