avcodec/pcm-dvd: fix incorrectly printed warning about changed block sizes
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Nov 2013 19:58:35 +0000 (20:58 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Nov 2013 20:00:03 +0000 (21:00 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pcm-dvd.c

index 243b6aa..b268f1e 100644 (file)
@@ -248,7 +248,7 @@ static int pcm_dvd_decode_frame(AVCodecContext *avctx, void *data,
 
     if ((retval = pcm_dvd_parse_header(avctx, src)))
         return retval;
-    if (s->last_block_size != s->block_size) {
+    if (s->last_block_size && s->last_block_size != s->block_size) {
         av_log(avctx, AV_LOG_WARNING, "block_size has changed\n");
         s->extra_sample_count = 0;
     }