]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_parser.c
Fix incorrect increment in sgidec.c
[ffmpeg] / libavcodec / h264_parser.c
index ee766a1f27b5de5a129828f6bf2d12c2a0b12fb5..c9dea81a4913870d07a4feaf62f420cba1c07c80 100644 (file)
@@ -25,6 +25,8 @@
  * @author Michael Niedermayer <michaelni@gmx.at>
  */
 
+#define UNCHECKED_BITSTREAM_READER 1
+
 #include "parser.h"
 #include "h264data.h"
 #include "golomb.h"
@@ -374,6 +376,7 @@ static int init(AVCodecParserContext *s)
 {
     H264Context *h = s->priv_data;
     h->thread_context[0] = h;
+    h->s.slice_context_count = 1;
     return 0;
 }