diff mpeg.c @ 708:d79164865a7c libavformat

more fine grained discarding of packets
author michael
date Thu, 17 Mar 2005 01:25:01 +0000
parents 829c5c8e5cf2
children 2443f9469df2
line wrap: on
line diff
--- a/mpeg.c	Wed Mar 16 19:11:58 2005 +0000
+++ b/mpeg.c	Thu Mar 17 01:25:01 2005 +0000
@@ -1541,7 +1541,7 @@
     if (codec_id != CODEC_ID_PCM_S16BE)
         st->need_parsing = 1;
  found:
-    if(st->discard)
+    if(st->discard >= AVDISCARD_ALL)
         goto skip;
     if (startcode >= 0xa0 && startcode <= 0xbf) {
         int b1, freq;