Apologies.  The patch should also check the current file's
Audio pointer against NULL.  Here is an updated patch:

----------------------------------------------------------------

*** mpeg.cxx_OLD        Tue Dec 22 22:21:42 2009
--- mpeg.cxx    Tue Dec 22 23:16:04 2009
***************
*** 97,102 ****
--- 97,112 ----
        }

        if (MpegType == mpeg_AUDIO || MpegType == mpeg_SYSTEM) {
+               if (Audio == NULL) {
+                       fprintf (stderr, "File %s is missing an audio layer\n",
+                                       FileName);
+                       return false;
+               }
+               if (peer->Audio == NULL) {
+                       fprintf (stderr, "File %s has an audio layer, but %s does 
not\n",
+                                       FileName, peer->FileName);
+                       return false;
+               }
                if (Audio->bitrate != peer->Audio->bitrate) {
                        fprintf (stderr, "Incompatible audio bitrates %s (%d bps) %s 
(%d bps)\n",
                                        FileName, Audio->bitrate,

----------------------------------------------------------------



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to