avcodec/hevc/extract_rbsp: fix error return type
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Oct 2013 18:31:49 +0000 (20:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Oct 2013 18:31:49 +0000 (20:31 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc.c

index 58a95ad..a395bc9 100644 (file)
@@ -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;