Remove an incorrect and unneeded assert in the amr demuxer.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 29 Sep 2013 05:11:56 +0000 (07:11 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 29 Sep 2013 05:11:56 +0000 (07:11 +0200)
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

index 7201ac3..db9bb4e 100644 (file)
@@ -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))