]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_parser.c
CMOV-ify vp56 arithcoder
[ffmpeg] / libavcodec / h264_parser.c
index 88529505af763ed6871984fef64e56b7b7133862..890e0a8930a8134564778b6a31f22ad5fb5b14ec 100644 (file)
@@ -245,6 +245,14 @@ static int h264_parse(AVCodecParserContext *s,
     ParseContext *pc = &h->s.parse_context;
     int next;
 
+    if (!h->got_first) {
+        h->got_first = 1;
+        if (avctx->extradata_size) {
+            h->s.avctx = avctx;
+            ff_h264_decode_extradata(h);
+        }
+    }
+
     if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){
         next= buf_size;
     }else{