projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avcodec/h2645: Fix NAL unit padding
[ffmpeg.git]
/
libavcodec
/
hevc_parser.c
diff --git
a/libavcodec/hevc_parser.c
b/libavcodec/hevc_parser.c
index
b5633f1
..
d93586b
100644
(file)
--- a/
libavcodec/hevc_parser.c
+++ b/
libavcodec/hevc_parser.c
@@
-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,
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;
if (ret < 0)
return ret;
@@
-243,7
+243,7
@@
static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
src_length = 20;
}
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;
if (consumed < 0)
return consumed;