mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 08:38:21 +00:00
avvidenc: Also set the repeat_pict flag correctly and take the TFF flag from caps if available
This commit is contained in:
parent
6359385df5
commit
2596e5bd6f
1 changed files with 5 additions and 2 deletions
|
@ -560,9 +560,12 @@ gst_ffmpegvidenc_send_frame (GstFFMpegVidEnc * ffmpegenc,
|
||||||
|
|
||||||
if (GST_VIDEO_INFO_IS_INTERLACED (&ffmpegenc->input_state->info)) {
|
if (GST_VIDEO_INFO_IS_INTERLACED (&ffmpegenc->input_state->info)) {
|
||||||
picture->interlaced_frame = TRUE;
|
picture->interlaced_frame = TRUE;
|
||||||
/* if this is not the case, a filter element should be used to swap fields */
|
|
||||||
picture->top_field_first =
|
picture->top_field_first =
|
||||||
GST_BUFFER_FLAG_IS_SET (frame->input_buffer, GST_VIDEO_BUFFER_FLAG_TFF);
|
GST_BUFFER_FLAG_IS_SET (frame->input_buffer, GST_VIDEO_BUFFER_FLAG_TFF)
|
||||||
|
|| GST_VIDEO_INFO_FIELD_ORDER (&ffmpegenc->input_state->info) ==
|
||||||
|
GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST;
|
||||||
|
picture->repeat_pict =
|
||||||
|
GST_BUFFER_FLAG_IS_SET (frame->input_buffer, GST_VIDEO_BUFFER_FLAG_RFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GST_VIDEO_INFO_MULTIVIEW_MODE (info) != GST_VIDEO_MULTIVIEW_MODE_NONE) {
|
if (GST_VIDEO_INFO_MULTIVIEW_MODE (info) != GST_VIDEO_MULTIVIEW_MODE_NONE) {
|
||||||
|
|
Loading…
Reference in a new issue