Commit 430b8eb7 authored by Wim Taymans's avatar Wim Taymans

ffdec: fixup QCELP to always be mono

Make QCELP always mono, even if the caps tell us a different layout.
parent 14e8ce88
......@@ -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
......
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