Browse Source

avcodec/h2645_parse: fix nal size

Found-by: <durandal_1707>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 15dd56c093)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1.3
Michael Niedermayer 9 years ago
parent
commit
8003a5d237
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/h2645_parse.c

+ 2
- 1
libavcodec/h2645_parse.c View File

@@ -88,7 +88,8 @@ int ff_h2645_extract_rbsp(const uint8_t *src, int length,
nal->size =
nal->raw_size = length;
return length;
}
} else if (i > length)
i = length;

av_fast_padded_malloc(&nal->rbsp_buffer, &nal->rbsp_buffer_size,
length + padding);


Loading…
Cancel
Save