Skip to content
Snippets Groups Projects
Commit ad465e78 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/mpeg12: Try to fetch pts/dts from both the packet associated with the...

avcodec/mpeg12: Try to fetch pts/dts from both the packet associated with the picture start code as well as earlier start codes

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 69ee915e
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size,
}
}
if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) {
ff_fetch_timestamp(s, i - 3, 1, 0);
ff_fetch_timestamp(s, i - 3, 1, i > 3);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment