Commit 2034ba08 authored by Michael Niedermayer's avatar Michael Niedermayer

Detect null gop headers.

Fix issue2592. / mpeg4-bad-gvop.raw
parent 0a18b645
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment