]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevc_parser.c
libavformat/webm_chunk: Option to specify HTTP header
[ffmpeg] / libavcodec / hevc_parser.c
index b5633f16ef19461eef96edeed87544e3d5650bef..d93586ba7dbd5a6e77ed75d2c2248de9352b3641 100644 (file)
@@ -90,7 +90,7 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
     int ret, i;
 
     ret = ff_h2645_packet_split(&ctx->pkt, buf, buf_size, avctx, 0, 0,
-                                AV_CODEC_ID_HEVC);
+                                AV_CODEC_ID_HEVC, 1);
     if (ret < 0)
         return ret;
 
@@ -243,7 +243,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
                 src_length = 20;
         }
 
-        consumed = ff_h2645_extract_rbsp(buf, src_length, nal);
+        consumed = ff_h2645_extract_rbsp(buf, src_length, nal, 1);
         if (consumed < 0)
             return consumed;