diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-02-20 12:49:19 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-02-20 12:49:19 +0000 |
commit | 7448ede81d5dd361e2ceb2d57fc82b958374489a (patch) | |
tree | c92b3a444a3e5f50b57c017f274683a32658cef1 /gst/wavparse | |
parent | 60dd9fbc4d5f9b2f60a8504fb36eabf4da371e3d (diff) |
gst-libs/gst/riff/riff-media.c: Do actually fix invalid RIFF fmt header values for alaw and mulaw audio instead of ju...
Original commit message from CVS:
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_audio_caps_with_data):
Do actually fix invalid RIFF fmt header values for alaw
and mulaw audio instead of just saying so.
* gst/wavparse/gstwavparse.c: (gst_wavparse_fmt):
Give gst_riff_create_audio_caps_with_data() a chance to
fix up broken format header fields before extracting any
parameters from the header. (fixes #167633)
Diffstat (limited to 'gst/wavparse')
-rw-r--r-- | gst/wavparse/gstwavparse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index b708cee4..4c343dcb 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -545,6 +545,10 @@ gst_wavparse_fmt (GstWavParse * wav) return FALSE; } + /* Note: gst_riff_create_audio_caps might nedd to fix values in + * the header header depending on the format, so call it first */ + caps = gst_riff_create_audio_caps (header->format, NULL, header, NULL); + wav->format = header->format; wav->rate = header->rate; wav->channels = header->channels; @@ -553,7 +557,6 @@ gst_wavparse_fmt (GstWavParse * wav) wav->depth = header->size; wav->bps = header->av_bps; - caps = gst_riff_create_audio_caps (header->format, NULL, header, NULL); g_free (header); if (caps) { |