AV_PICTURE_TYPE_NONE is returned for multiple slice H264 frames
|Reported by:||Gibraltar||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
An incorrect AVPictureType is returned during demux for two slice per H264 encoded streams. When calling av_read_frame to demux a packet from a Mpeg-2 H264 stream, the returned avpacket AVPictureType is AV_PICTURE_TYPE_NONE in the case where it should be AV_PICTURE_TYPE_I.
This only happens when the H264 frames has two slices per frame as shown in attached image.
How to reproduce:
Demux an H264 I frame when the H264 is two slices per frame.