[FFmpeg-devel] [PATCH]Remove incorrect assert from amr demuxer

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Sep 27 08:53:54 CEST 2013


Attached patch fixes ticket #3001, libavformat supports forcing the codec, so 
asserting a specific codec in a demuxer is wrong, the assert is unneeded 
because the condition is tested in the following line.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/amr.c b/libavformat/amr.c
index 7201ac3..db9bb4e 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))

More information about the ffmpeg-devel mailing list