ffmpeg: fix for audio caps change

This commit is contained in:
Wim Taymans 2011-09-06 15:29:26 +02:00
parent 85fa801d42
commit 09a66b0923

View file

@ -1288,16 +1288,16 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
switch (codec_id) { switch (codec_id) {
case CODEC_ID_PCM_S16LE: case CODEC_ID_PCM_S16LE:
format = GST_AUDIO_FORMAT_S16_LE; format = GST_AUDIO_FORMAT_S16LE;
break; break;
case CODEC_ID_PCM_S16BE: case CODEC_ID_PCM_S16BE:
format = GST_AUDIO_FORMAT_S16_BE; format = GST_AUDIO_FORMAT_S16BE;
break; break;
case CODEC_ID_PCM_U16LE: case CODEC_ID_PCM_U16LE:
format = GST_AUDIO_FORMAT_U16_LE; format = GST_AUDIO_FORMAT_U16LE;
break; break;
case CODEC_ID_PCM_U16BE: case CODEC_ID_PCM_U16BE:
format = GST_AUDIO_FORMAT_U16_BE; format = GST_AUDIO_FORMAT_U16BE;
break; break;
case CODEC_ID_PCM_S8: case CODEC_ID_PCM_S8:
format = GST_AUDIO_FORMAT_S8; format = GST_AUDIO_FORMAT_S8;
@ -2764,16 +2764,16 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
case GST_AUDIO_FORMAT_U8: case GST_AUDIO_FORMAT_U8:
id = CODEC_ID_PCM_U8; id = CODEC_ID_PCM_U8;
break; break;
case GST_AUDIO_FORMAT_S16_LE: case GST_AUDIO_FORMAT_S16LE:
id = CODEC_ID_PCM_S16LE; id = CODEC_ID_PCM_S16LE;
break; break;
case GST_AUDIO_FORMAT_S16_BE: case GST_AUDIO_FORMAT_S16BE:
id = CODEC_ID_PCM_S16BE; id = CODEC_ID_PCM_S16BE;
break; break;
case GST_AUDIO_FORMAT_U16_LE: case GST_AUDIO_FORMAT_U16LE:
id = CODEC_ID_PCM_U16LE; id = CODEC_ID_PCM_U16LE;
break; break;
case GST_AUDIO_FORMAT_U16_BE: case GST_AUDIO_FORMAT_U16BE:
id = CODEC_ID_PCM_U16BE; id = CODEC_ID_PCM_U16BE;
break; break;
default: default: