Revert "h264: skip start code search if the size of the nal unit is known"
[ffmpeg.git] / libavcodec / h264_parser.c
index 1967efa..826c17a 100644 (file)
@@ -144,7 +144,7 @@ static inline int parse_nal_units(AVCodecParserContext *s,
                 src_length = 20;
             break;
         }
-        ptr= ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length, 0);
+        ptr= ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length);
         if (ptr==NULL || dst_length < 0)
             break;