mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
Detect null gop headers.
Fix issue2592. / mpeg4-bad-gvop.raw
This commit is contained in:
parent
0a18b64585
commit
2034ba08ec
@ -1495,6 +1495,11 @@ end:
|
||||
static int mpeg4_decode_gop_header(MpegEncContext * s, GetBitContext *gb){
|
||||
int hours, minutes, seconds;
|
||||
|
||||
if(!show_bits(gb, 18)){
|
||||
av_log(s->avctx, AV_LOG_WARNING, "GOP header invalid\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
hours= get_bits(gb, 5);
|
||||
minutes= get_bits(gb, 6);
|
||||
skip_bits1(gb);
|
||||
|
Loading…
Reference in New Issue
Block a user