mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
ffdec: fixup QCELP to always be mono
Make QCELP always mono, even if the caps tell us a different layout.
This commit is contained in:
parent
14e8ce8816
commit
430b8eb74d
1 changed files with 10 additions and 0 deletions
|
@ -2385,6 +2385,16 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
/* fixup of default settings */
|
||||
switch (codec_id) {
|
||||
case CODEC_ID_QCELP:
|
||||
/* QCELP is always mono, no matter what the caps say */
|
||||
context->channels = 1;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* _formatid_to_caps () is meant for muxers/demuxers, it
|
||||
|
|
Loading…
Reference in a new issue