mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
vdpauh264dec: fix problem when encountering GST_NAL_AU_DELIMITER
This commit is contained in:
parent
78639dd379
commit
7462a64398
1 changed files with 1 additions and 7 deletions
|
@ -732,15 +732,9 @@ gst_vdp_h264_dec_parse_data (GstBaseVideoDecoder * base_video_decoder,
|
|||
|
||||
frame = gst_base_video_decoder_get_current_frame (base_video_decoder);
|
||||
|
||||
/* does this mark the beginning of a new access unit */
|
||||
if (nal_unit.type == GST_NAL_AU_DELIMITER) {
|
||||
ret = gst_base_video_decoder_have_frame (base_video_decoder, &frame);
|
||||
gst_base_video_decoder_frame_start (base_video_decoder, buf);
|
||||
}
|
||||
|
||||
if (GST_VIDEO_FRAME_FLAG_IS_SET (frame, GST_H264_FRAME_GOT_PRIMARY)) {
|
||||
if (nal_unit.type == GST_NAL_SPS || nal_unit.type == GST_NAL_PPS ||
|
||||
nal_unit.type == GST_NAL_SEI ||
|
||||
nal_unit.type == GST_NAL_SEI || nal_unit.type == GST_NAL_AU_DELIMITER ||
|
||||
(nal_unit.type >= 14 && nal_unit.type <= 18)) {
|
||||
ret = gst_base_video_decoder_have_frame (base_video_decoder, &frame);
|
||||
gst_base_video_decoder_frame_start (base_video_decoder, buf);
|
||||
|
|
Loading…
Reference in a new issue