[FFmpeg-cvslog] avcodec/dvbsubdec: Do not return a value from a function returning void

Michael Niedermayer git at videolan.org
Sun Apr 26 13:55:10 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 26 13:47:12 2015 +0200| [e06dde52d75ac216c98c8479f7f8f0d4566024af] | committer: Michael Niedermayer

avcodec/dvbsubdec: Do not return a value from a function returning void

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

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

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

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 7fb80f8..8c2a0ea 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1418,7 +1418,7 @@ static void save_display_set(DVBSubContext *ctx)
 
         pbuf = av_malloc(width * height * 4);
         if (!pbuf)
-            return AVERROR(ENOMEM);
+            return;
 
         for (display = ctx->display_list; display; display = display->next) {
             region = get_region(ctx, display->region_id);



More information about the ffmpeg-cvslog mailing list