]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/g726.c
Merge commit '10db1a9bca46b0f760a1263d47142b2f57e195d7'
[ffmpeg] / libavcodec / g726.c
index 7884f361898ed1aa6a96877b869188b3b5aa42b4..d035b3efb17a101da11c1c5e276cf3c041059326 100644 (file)
@@ -401,6 +401,10 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
 {
     G726Context* c = avctx->priv_data;
 
+    if(avctx->channels > 1){
+        avpriv_request_sample(avctx, "Decoding more than one channel");
+        return AVERROR_PATCHWELCOME;
+    }
     avctx->channels       = 1;
     avctx->channel_layout = AV_CH_LAYOUT_MONO;