summaryrefslogtreecommitdiff
path: root/libavcodec/pcm-dvd.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-18 20:58:35 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-18 21:00:03 +0100
commit4adf1fe34f179af0b891d4f69857964f30a318ee (patch)
tree8f18ea67a5837004dbd382319322166454276b31 /libavcodec/pcm-dvd.c
parentab184b298d4a54199986de10927258aed18c7b6b (diff)
downloadffmpeg-4adf1fe34f179af0b891d4f69857964f30a318ee.tar.gz
avcodec/pcm-dvd: fix incorrectly printed warning about changed block sizes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pcm-dvd.c')
-rw-r--r--libavcodec/pcm-dvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c
index 243b6aa0bb..b268f1e632 100644
--- a/libavcodec/pcm-dvd.c
+++ b/libavcodec/pcm-dvd.c
@@ -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;
}