diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-06-21 18:29:32 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-06-21 18:29:32 +0200 |
commit | e42cc965668b92ec5e4f062124f9c50e1da65fcd (patch) | |
tree | 0b8baed991ba15a887a0509e4bbc4c8e49d258e0 /ext | |
parent | 57b1970395d8bd79fbea761dbde7f3ccab84ac1c (diff) |
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.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libav/gstavvidenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index b2c2458..95b0a0a 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -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); |