summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_parser.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-03-21 09:00:40 +0100
committerAnton Khirnov <anton@khirnov.net>2016-03-28 09:45:04 +0200
commitb667252a41fbf5a3f6ea8c67fdbc03db3d748977 (patch)
tree74969854afe80e07011090a012ce41bdfd9b9f03 /libavcodec/hevc_parser.c
parent52ec149fbee57b6ca817049c9706212a0774a32c (diff)
h2645_parse: add support for parsing h264
Diffstat (limited to 'libavcodec/hevc_parser.c')
-rw-r--r--libavcodec/hevc_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index 5c1fbc31d5..dc5fffcb0b 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -82,7 +82,8 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
HEVCParserContext *ctx = s->priv_data;
int ret, i;
- ret = ff_h2645_packet_split(&ctx->pkt, buf, buf_size, avctx, 0, 0);
+ ret = ff_h2645_packet_split(&ctx->pkt, buf, buf_size, avctx, 0, 0,
+ AV_CODEC_ID_HEVC);
if (ret < 0)
return ret;