summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2010-07-18 21:15:34 +0200
committerCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2010-07-18 21:16:23 +0200
commit7462a6439862faac82d787e0e7928aac9e7b6355 (patch)
tree18673c27ef242006f2c2e1c6a90668ba53339dcd
parent78639dd379debe6e19d196ccd776c9d682809708 (diff)
vdpauh264dec: fix problem when encountering GST_NAL_AU_DELIMITER
-rw-r--r--sys/vdpau/h264/gstvdph264dec.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/vdpau/h264/gstvdph264dec.c b/sys/vdpau/h264/gstvdph264dec.c
index 3e99f8812..c7b1e24b2 100644
--- a/sys/vdpau/h264/gstvdph264dec.c
+++ b/sys/vdpau/h264/gstvdph264dec.c
@@ -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);