aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-05 18:59:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-05 19:00:22 +0100
commitc7048036dbe6e61b53f72f6950de021abe44bd4c (patch)
tree33eb7b5f0c8b91c93e4c74fa3a825daa826afbbe /libavcodec/cook.c
parent0a7bf34042dbf31d640f7091beb19926713c31d3 (diff)
downloadffmpeg-c7048036dbe6e61b53f72f6950de021abe44bd4c.tar.gz
cook: fix return statements.
Found-by: cbsrobot Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r--libavcodec/cook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 36f02ac7ea..b5b5887217 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -770,7 +770,7 @@ static int decouple_info(COOKContext *q, COOKSubpacket *p, int *decouple_tab)
int length = end - start + 1;
if (start > end)
- return;
+ return 0;
if (vlc)
for (i = 0; i < length; i++)
@@ -969,6 +969,7 @@ static int decode_subpacket(COOKContext *q, COOKSubpacket *p,
else
mlt_compensate_output(q, q->decode_buffer_2, &p->gains2,
p->mono_previous_buffer2, outbuffer, p->ch_idx + 1);
+ return 0;
}