diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-22 03:42:59 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-22 04:42:48 +0300 |
commit | c9e3952b82e58530366620c202faad13b3e00518 (patch) | |
tree | 309268a8d8782b43475c9b7764b9ff0239468b02 /libavcodec/rv34.c | |
parent | 6179dc8aa7e5fc5358b9614306f93f1adadf22a4 (diff) |
avcodec/rv34: Forward error from rv34_decode_mv()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index f1c93cffa4..b5802d4ac3 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -404,7 +404,8 @@ static int rv34_decode_inter_mb_header(RV34DecContext *r, int8_t *intra_types) r->mb_type[mb_pos] = RV34_MB_B_DIRECT; } r->is16 = !!IS_INTRA16x16(s->current_picture_ptr->mb_type[mb_pos]); - rv34_decode_mv(r, r->block_type); + if (rv34_decode_mv(r, r->block_type) < 0) + return -1; if(r->block_type == RV34_MB_SKIP){ fill_rectangle(intra_types, 4, 4, r->intra_types_stride, 0, sizeof(intra_types[0])); return 0; |