[FFmpeg-cvslog] avcodec/hevc/extract_rbsp: fix error return type

Michael Niedermayer git at videolan.org
Tue Oct 22 20:37:43 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 22 20:31:49 2013 +0200| [610a8b1537fe728f4f1e44a5276f225334653123] | committer: Michael Niedermayer

avcodec/hevc/extract_rbsp: fix error return type

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=610a8b1537fe728f4f1e44a5276f225334653123
---

 libavcodec/hevc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 58a95ad..a395bc9 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;



More information about the ffmpeg-cvslog mailing list