Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-31 17:12:58 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-12-31 17:42:17 +0300
commit5ba62e89dfca540db03997668a8ec4571068d9e0 (patch)
tree6a89fb2e156e0bf9bc13aca2f8b8d2b412889726 /libavcodec/loco.c
parent131a18582682d67ca3d05500ead4cc332d4043b6 (diff)
avcodec/loco: check the init_get_bits8() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/loco.c')
-rw-r--r--libavcodec/loco.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/loco.c b/libavcodec/loco.c
index 9b7359832d..aea478d563 100644
--- a/libavcodec/loco.c
+++ b/libavcodec/loco.c
@@ -130,12 +130,15 @@ static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int heigh
{
RICEContext rc;
int val;
+ int ret;
int i, j;
if(buf_size<=0)
return -1;
- init_get_bits8(&rc.gb, buf, buf_size);
+ if ((ret = init_get_bits8(&rc.gb, buf, buf_size)) < 0)
+ return ret;
+
rc.save = 0;
rc.run = 0;
rc.run2 = 0;