aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-22 20:31:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-22 20:31:49 +0200
commit610a8b1537fe728f4f1e44a5276f225334653123 (patch)
tree8fba6bfe093e5681117338fc37de0d282b2a3cb0 /libavcodec
parent0c8aba3842a718eb9139fc88b7b60dc79e127bd7 (diff)
downloadandroid_external_ffmpeg-610a8b1537fe728f4f1e44a5276f225334653123.tar.gz
android_external_ffmpeg-610a8b1537fe728f4f1e44a5276f225334653123.tar.bz2
android_external_ffmpeg-610a8b1537fe728f4f1e44a5276f225334653123.zip
avcodec/hevc/extract_rbsp: fix error return type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 58a95ad131..a395bc9087 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -2277,7 +2277,7 @@ static int extract_rbsp(HEVCContext *s, const uint8_t *src, int length,
s->skipped_bytes_pos_size,
sizeof(*s->skipped_bytes_pos));
if (!s->skipped_bytes_pos)
- return NULL;
+ return AVERROR(ENOMEM);
}
s->skipped_bytes_pos[s->skipped_bytes-1] = di - 1;
continue;