changeset 6754:7094ae690809 libavcodec

Do not return -1 from void functions.
author cehoyos
date Thu, 08 May 2008 14:02:35 +0000
parents 73de16350531
children 33896780c612
files libschroedingerdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libschroedingerdec.c	Thu May 08 14:01:44 2008 +0000
+++ b/libschroedingerdec.c	Thu May 08 14:02:35 2008 +0000
@@ -126,7 +126,7 @@
         av_log(avccontext, AV_LOG_ERROR, "invalid dimensions (%dx%d)\n",
                p_schro_params->format->width, p_schro_params->format->height);
         avccontext->height = avccontext->width = 0;
-        return -1;
+        return;
     }
     avccontext->height  = p_schro_params->format->height;
     avccontext->width   = p_schro_params->format->width;
@@ -138,7 +138,7 @@
         av_log (avccontext, AV_LOG_ERROR,
                 "This codec currently only supports planar YUV 4:2:0, 4:2:2 "
                 "and 4:4:4 formats.\n");
-        return -1;
+        return;
     }
 
     avccontext->time_base.den = p_schro_params->format->frame_rate_numerator;