Commit 610a8b15 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/hevc/extract_rbsp: fix error return type

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0c8aba38
...@@ -2277,7 +2277,7 @@ static int extract_rbsp(HEVCContext *s, const uint8_t *src, int length, ...@@ -2277,7 +2277,7 @@ static int extract_rbsp(HEVCContext *s, const uint8_t *src, int length,
s->skipped_bytes_pos_size, s->skipped_bytes_pos_size,
sizeof(*s->skipped_bytes_pos)); sizeof(*s->skipped_bytes_pos));
if (!s->skipped_bytes_pos) if (!s->skipped_bytes_pos)
return NULL; return AVERROR(ENOMEM);
} }
s->skipped_bytes_pos[s->skipped_bytes-1] = di - 1; s->skipped_bytes_pos[s->skipped_bytes-1] = di - 1;
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment