ffmpegcodecmap: really include all supported sample formats in audio caps

Fixes #653717.
This commit is contained in:
Mark Nauwelaerts 2011-06-30 09:06:21 +02:00
parent 856dbe6f21
commit 6d517b3b76

View file

@ -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);
}