mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-26 00:31:12 +00:00
ituh263: reject b-frame with pp_time = 0
Avoid a division by 0 in ff_mpeg4_set_one_direct_mv. Sample-Id: 00000168-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> (cherry picked from commit9514440337
) (cherry picked from commit5df52b0131
) (cherry picked from commitaa2a3ca27a
)
This commit is contained in:
parent
f1a8885ae9
commit
16f0f97eec
@ -753,6 +753,8 @@ int ff_h263_decode_mb(MpegEncContext *s,
|
||||
}
|
||||
|
||||
if(IS_DIRECT(mb_type)){
|
||||
if (!s->pp_time)
|
||||
return AVERROR_INVALIDDATA;
|
||||
s->mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT;
|
||||
mb_type |= ff_mpeg4_set_direct_mv(s, 0, 0);
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user