mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
vc1dec: avoid == -1 checks for errors.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b378a23395
commit
e3bd61248f
@ -5490,11 +5490,11 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
|
||||
// do parse frame header
|
||||
v->pic_header_flag = 0;
|
||||
if (v->profile < PROFILE_ADVANCED) {
|
||||
if (ff_vc1_parse_frame_header(v, &s->gb) == -1) {
|
||||
if (ff_vc1_parse_frame_header(v, &s->gb) < 0) {
|
||||
goto err;
|
||||
}
|
||||
} else {
|
||||
if (ff_vc1_parse_frame_header_adv(v, &s->gb) == -1) {
|
||||
if (ff_vc1_parse_frame_header_adv(v, &s->gb) < 0) {
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user