[FFmpeg-cvslog] Remove an incorrect and unneeded assert in the amr demuxer.

Carl Eugen Hoyos git at videolan.org
Sun Sep 29 11:37:09 CEST 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Sep 29 07:11:56 2013 +0200| [d87ff555025e90ef285425216c29be95034e2485] | committer: Carl Eugen Hoyos

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d87ff555025e90ef285425216c29be95034e2485
---

 libavformat/amr.c |    2 --
 1 file changed, 2 deletions(-)

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-cvslog mailing list