Commit 6d517b3b authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

ffmpegcodecmap: really include all supported sample formats in audio caps

Fixes #653717.
parent 856dbe6f
......@@ -1926,7 +1926,7 @@ gst_ffmpeg_codectype_to_audio_caps (AVCodecContext * context,
caps = gst_caps_new_empty ();
for (i = 0; codec->sample_fmts[i] != -1; i++) {
temp =
gst_ffmpeg_smpfmt_to_caps (codec->sample_fmts[0], context, codec_id);
gst_ffmpeg_smpfmt_to_caps (codec->sample_fmts[i], context, codec_id);
if (temp != NULL)
gst_caps_append (caps, temp);
}
......
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