1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/hevc/extract_rbsp: fix error return type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-22 20:31:49 +02:00
parent 0c8aba3842
commit 610a8b1537

View File

@ -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;