David <[email protected]> added the comment:

This is another patch, that check that neither frame nor size are invalid.

Maybe this should be fixed in av_rescale_rnd, but I'm not sure what should
happen instead of an assertion error there.

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2442>
________________________________________________
Index: libavformat/mp3.c
===================================================================
--- libavformat/mp3.c	(revision 26076)
+++ libavformat/mp3.c	(working copy)
@@ -118,7 +118,7 @@
         }
     }
 
-    if(!frames && !size)
+    if(!frames || !size)
         return -1;
 
     /* Skip the vbr tag frame */

Reply via email to