diff h264_parser.c @ 11770:6d58a4f5e455 libavcodec

Add an AVSTREAM_PARSE_FULL_ONCE parsing mode to parse headers and combine packets once and only once.
author alexc
date Wed, 26 May 2010 04:20:32 +0000
parents 7dd2a45249a9
children f918fb753b31
line wrap: on
line diff
--- a/h264_parser.c	Tue May 25 23:25:29 2010 +0000
+++ b/h264_parser.c	Wed May 26 04:20:32 2010 +0000
@@ -272,6 +272,9 @@
             s->dts_ref_dts_delta = INT_MIN;
             s->pts_dts_delta     = INT_MIN;
         }
+        if (s->flags & PARSER_FLAG_ONCE) {
+            s->flags &= PARSER_FLAG_COMPLETE_FRAMES;
+        }
     }
 
     *poutbuf = buf;