mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
avvidenc: Make sure to fixate caps before setting them on the pad
After the recent addition of negotiation support for MPEG4 part 2 profiles via caps it can happen that the generated caps at this point still contain multiple profiles. For example if downstream does not care. Just fixate anything here and use those caps.
This commit is contained in:
parent
57b1970395
commit
e42cc96566
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ gst_ffmpegvidenc_set_format (GstVideoEncoder * encoder,
|
|||
gst_caps_unref (icaps);
|
||||
goto unsupported_codec;
|
||||
}
|
||||
icaps = gst_caps_truncate (icaps);
|
||||
icaps = gst_caps_fixate (icaps);
|
||||
|
||||
GST_DEBUG_OBJECT (ffmpegenc, "codec flags 0x%08x", ffmpegenc->context->flags);
|
||||
|
||||
|
|
Loading…
Reference in a new issue