diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-01-25 12:58:45 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-01-27 09:04:29 +0100 |
commit | b0593a4bca138f1f026d8c21e8c3daa96800afe2 (patch) | |
tree | 34848df0e2a954a19b4fccaf4d613a607332a2f1 /libavcodec/hevc.c | |
parent | 3a70c0c95feacb3844d05eebd579fc8189a77eee (diff) | |
download | ffmpeg-b0593a4bca138f1f026d8c21e8c3daa96800afe2.tar.gz |
hevc: pass the full HEVCNAL struct to decode_nal_unit
This enables decode_nal_unit to access additional fields added in
subsequent commits.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 9957f31cc5..de76ba062e 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2465,13 +2465,13 @@ fail: return ret; } -static int decode_nal_unit(HEVCContext *s, const uint8_t *nal, int length) +static int decode_nal_unit(HEVCContext *s, const HEVCNAL *nal) { HEVCLocalContext *lc = &s->HEVClc; GetBitContext *gb = &lc->gb; int ctb_addr_ts, ret; - ret = init_get_bits8(gb, nal, length); + ret = init_get_bits8(gb, nal->data, nal->size); if (ret < 0) return ret; @@ -2777,7 +2777,7 @@ static int decode_nal_units(HEVCContext *s, const uint8_t *buf, int length) /* parse the NAL units */ for (i = 0; i < s->nb_nals; i++) { - int ret = decode_nal_unit(s, s->nals[i].data, s->nals[i].size); + int ret = decode_nal_unit(s, &s->nals[i]); if (ret < 0) { av_log(s->avctx, AV_LOG_WARNING, "Error parsing NAL unit #%d.\n", i); |