]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevc.c
h2645_parse: add support for parsing h264
[ffmpeg] / libavcodec / hevc.c
index 72dea5a5894e73b2ca8dba8d23798ada0d90604b..3bc730a68e9abb3900d02fce2778199c3c94509f 100644 (file)
@@ -2582,7 +2582,7 @@ static int decode_nal_units(HEVCContext *s, const uint8_t *buf, int length)
     /* split the input packet into NAL units, so we know the upper bound on the
      * number of slices in the frame */
     ret = ff_h2645_packet_split(&s->pkt, buf, length, s->avctx, s->is_nalff,
-                                s->nal_length_size);
+                                s->nal_length_size, s->avctx->codec_id);
     if (ret < 0) {
         av_log(s->avctx, AV_LOG_ERROR,
                "Error splitting the input into NAL units.\n");