Commit e42cc965 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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.
parent 57b19703
...@@ -463,7 +463,7 @@ gst_ffmpegvidenc_set_format (GstVideoEncoder * encoder, ...@@ -463,7 +463,7 @@ gst_ffmpegvidenc_set_format (GstVideoEncoder * encoder,
gst_caps_unref (icaps); gst_caps_unref (icaps);
goto unsupported_codec; goto unsupported_codec;
} }
icaps = gst_caps_truncate (icaps); icaps = gst_caps_fixate (icaps);
GST_DEBUG_OBJECT (ffmpegenc, "codec flags 0x%08x", ffmpegenc->context->flags); GST_DEBUG_OBJECT (ffmpegenc, "codec flags 0x%08x", ffmpegenc->context->flags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment