diff options
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 8f60b3d736..bcbb889dfa 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2772,8 +2772,10 @@ int ff_hevc_extract_rbsp(HEVCContext *s, 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; } @@ -2823,6 +2825,8 @@ nsc: nal->data = dst; nal->size = di; + nal->raw_data = src; + nal->raw_size = si; return si; } |