diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-01-25 12:58:46 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-01-27 09:04:44 +0100 |
commit | 36779a84051eae6744cc936d91b1d428143665ba (patch) | |
tree | 73a62455823285c33f53e466e8cbb0c5dfd5839e /libavcodec/hevc.c | |
parent | b0593a4bca138f1f026d8c21e8c3daa96800afe2 (diff) | |
download | ffmpeg-36779a84051eae6744cc936d91b1d428143665ba.tar.gz |
hevc: store the escaped/raw bitstream in HEVCNAL
Hardware Accelerators require access to the escaped bitstream.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index de76ba062e..560d52c458 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2657,8 +2657,10 @@ static int extract_rbsp(const uint8_t *src, int length, #endif /* HAVE_FAST_UNALIGNED */ if (i >= length - 1) { // no escaped 0 - nal->data = src; - nal->size = length; + nal->data = + nal->raw_data = src; + nal->size = + nal->raw_size = length; return length; } @@ -2697,6 +2699,8 @@ nsc: nal->data = dst; nal->size = di; + nal->raw_data = src; + nal->raw_size = si; return si; } |