mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
codecparsers: vc1: fix PTYPE for interlaced frames.
Coverity found missing break in parse_frame_header_advanced() when determining PTYPE from FPTYPE for interlaced streams. https://bugzilla.gnome.org/show_bug.cgi?id=688626 Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
c951d201ec
commit
e179a6b4dc
1 changed files with 8 additions and 0 deletions
|
@ -924,30 +924,38 @@ parse_frame_header_advanced (GstBitReader * br, GstVC1FrameHdr * framehdr,
|
|||
case 0x00:
|
||||
case 0x02:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_I;
|
||||
break;
|
||||
case 0x01:
|
||||
case 0x03:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_P;
|
||||
break;
|
||||
case 0x04:
|
||||
case 0x06:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_B;
|
||||
break;
|
||||
case 0x05:
|
||||
case 0x07:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_BI;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (pic->fptype) {
|
||||
case 0x00:
|
||||
case 0x01:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_I;
|
||||
break;
|
||||
case 0x02:
|
||||
case 0x03:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_P;
|
||||
break;
|
||||
case 0x04:
|
||||
case 0x05:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_B;
|
||||
break;
|
||||
case 0x06:
|
||||
case 0x07:
|
||||
framehdr->ptype = GST_VC1_PICTURE_TYPE_BI;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue