From d87ff555025e90ef285425216c29be95034e2485 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 29 Sep 2013 07:11:56 +0200 Subject: [PATCH] Remove an incorrect and unneeded assert in the amr demuxer. Asserting a specific codec is not correct since libavformat allows forcing a codec, an equivalent check is in the following line. Fixes ticket #3001. --- libavformat/amr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/amr.c b/libavformat/amr.c index 7201ac3688..db9bb4e59d 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -132,8 +132,6 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) }; size = packed_size[mode]; - } else { - av_assert0(0); } if (!size || av_new_packet(pkt, size))