mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
video: Only use the interlacing buffer flags if the caps specify interlaced video
This commit is contained in:
parent
47e169b0b5
commit
71900c4342
1 changed files with 8 additions and 6 deletions
|
@ -1097,12 +1097,14 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info,
|
||||||
frame->id = id;
|
frame->id = id;
|
||||||
frame->flags = 0;
|
frame->flags = 0;
|
||||||
|
|
||||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_TFF))
|
if (GST_VIDEO_INFO_IS_INTERLACED (info)) {
|
||||||
frame->flags |= GST_VIDEO_FRAME_FLAG_TFF;
|
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_TFF))
|
||||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_RFF))
|
frame->flags |= GST_VIDEO_FRAME_FLAG_TFF;
|
||||||
frame->flags |= GST_VIDEO_FRAME_FLAG_RFF;
|
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_RFF))
|
||||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_ONEFIELD))
|
frame->flags |= GST_VIDEO_FRAME_FLAG_RFF;
|
||||||
frame->flags |= GST_VIDEO_FRAME_FLAG_ONEFIELD;
|
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_ONEFIELD))
|
||||||
|
frame->flags |= GST_VIDEO_FRAME_FLAG_ONEFIELD;
|
||||||
|
}
|
||||||
|
|
||||||
gst_buffer_map (buffer, &frame->map[0], flags);
|
gst_buffer_map (buffer, &frame->map[0], flags);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue