]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/yop.c
lavf: fix the comparison in an overflow check
[ffmpeg] / libavformat / yop.c
index 351938b7e9789ef28729947d9229741b66efe8a8..5fe6bdc7d473d9c53b0331c6dd38df1ec66a5459 100644 (file)
@@ -75,7 +75,7 @@ static int yop_read_header(AVFormatContext *s)
     audio_dec->codec_type   = AVMEDIA_TYPE_AUDIO;
     audio_dec->codec_id     = AV_CODEC_ID_ADPCM_IMA_APC;
     audio_dec->channels     = 1;
-    audio_dec->channels     = AV_CH_LAYOUT_MONO;
+    audio_dec->channel_layout = AV_CH_LAYOUT_MONO;
     audio_dec->sample_rate  = 22050;
 
     // Video