aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2008-05-08 14:02:35 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2008-05-08 14:02:35 +0000
commit35027eddf3113fa8a0e0c72aad12c9ac6a9a5228 (patch)
tree8e504f5b22c54c10e17e5cfb0a0f7a1923fc6300 /libavcodec
parente0a0c85dbd25fe1f3e5931863627b702af156d28 (diff)
downloadffmpeg-35027eddf3113fa8a0e0c72aad12c9ac6a9a5228.tar.gz
Do not return -1 from void functions.
Originally committed as revision 13080 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libschroedingerdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c
index 2f8c88f59c..ffb9b16849 100644
--- a/libavcodec/libschroedingerdec.c
+++ b/libavcodec/libschroedingerdec.c
@@ -126,7 +126,7 @@ static void libschroedinger_handle_first_access_unit(AVCodecContext *avccontext)
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 @@ static void libschroedinger_handle_first_access_unit(AVCodecContext *avccontext)
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;