mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
avviddec: set output chroma-site
Use libav provided chroma-site and place it on the output caps.
This commit is contained in:
parent
81cef109e2
commit
ead14945aa
1 changed files with 17 additions and 0 deletions
|
@ -963,6 +963,23 @@ gst_ffmpegviddec_negotiate (GstFFMpegVidDec * ffmpegdec,
|
|||
else
|
||||
out_info->interlace_mode = GST_VIDEO_INTERLACE_MODE_PROGRESSIVE;
|
||||
|
||||
switch (context->chroma_sample_location) {
|
||||
case 1:
|
||||
out_info->chroma_site = GST_VIDEO_CHROMA_SITE_MPEG2;
|
||||
break;
|
||||
case 2:
|
||||
out_info->chroma_site = GST_VIDEO_CHROMA_SITE_JPEG;
|
||||
break;
|
||||
case 3:
|
||||
out_info->chroma_site = GST_VIDEO_CHROMA_SITE_DV;
|
||||
break;
|
||||
case 4:
|
||||
out_info->chroma_site = GST_VIDEO_CHROMA_SITE_V_COSITED;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
/* try to find a good framerate */
|
||||
if ((in_info->fps_d && in_info->fps_n) ||
|
||||
GST_VIDEO_INFO_FLAG_IS_SET (in_info, GST_VIDEO_FLAG_VARIABLE_FPS)) {
|
||||
|
|
Loading…
Reference in a new issue