mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
codecparsers: vc1: handle skipped pictures gracefully.
This commit is contained in:
parent
ce71fdae1b
commit
b23f7eb38d
1 changed files with 3 additions and 3 deletions
|
@ -876,9 +876,6 @@ parse_frame_header_advanced (GstBitReader * br, GstVC1FrameHdr * framehdr,
|
||||||
|
|
||||||
framehdr->ptype = get_unary (br, 0, 4);
|
framehdr->ptype = get_unary (br, 0, 4);
|
||||||
|
|
||||||
if (framehdr->ptype == GST_VC1_PICTURE_TYPE_SKIPPED)
|
|
||||||
goto failed;
|
|
||||||
|
|
||||||
if (advhdr->tfcntrflag) {
|
if (advhdr->tfcntrflag) {
|
||||||
READ_UINT8 (br, pic->tfcntr, 8);
|
READ_UINT8 (br, pic->tfcntr, 8);
|
||||||
GST_DEBUG ("tfcntr %u", pic->tfcntr);
|
GST_DEBUG ("tfcntr %u", pic->tfcntr);
|
||||||
|
@ -916,6 +913,9 @@ parse_frame_header_advanced (GstBitReader * br, GstVC1FrameHdr * framehdr,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (framehdr->ptype == GST_VC1_PICTURE_TYPE_SKIPPED)
|
||||||
|
return GST_VC1_PARSER_OK;
|
||||||
|
|
||||||
READ_UINT8 (br, pic->rndctrl, 1);
|
READ_UINT8 (br, pic->rndctrl, 1);
|
||||||
|
|
||||||
if (advhdr->interlace) {
|
if (advhdr->interlace) {
|
||||||
|
|
Loading…
Reference in a new issue