From: Youness Alaoui Date: Wed, 9 Jan 2013 18:24:49 +0000 (-0500) Subject: qtdemux: set interleaved layout correctly for LPCM audio X-Git-Tag: 1.19.3~509^2~6089 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6a00ad6e9165ed3b59eba904cfbb8bbbee23495;p=platform%2Fupstream%2Fgstreamer.git qtdemux: set interleaved layout correctly for LPCM audio https://bugzilla.gnome.org/show_bug.cgi?id=663458 --- diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 1260f99740..0c6f9d0c9f 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -9878,10 +9878,10 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, format = gst_audio_format_build_integer ((flags & FLAG_IS_SIGNED) ? TRUE : FALSE, (flags & FLAG_IS_BIG_ENDIAN) ? G_BIG_ENDIAN : G_LITTLE_ENDIAN, width, depth); - // FIXME: check FLAG_IS_NON_INTERLEAVED flag for layout caps = gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, gst_audio_format_to_string (format), - "layout", G_TYPE_STRING, "interleaved", NULL); + "layout", G_TYPE_STRING, (flags & FLAG_IS_NON_INTERLEAVED) ? + "non-interleaved" : "interleaved", NULL); } else { if (depth == 0) depth = 32; @@ -9900,7 +9900,8 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, } caps = gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, gst_audio_format_to_string (format), - "layout", G_TYPE_STRING, "interleaved", NULL); + "layout", G_TYPE_STRING, (flags & FLAG_IS_NON_INTERLEAVED) ? + "non-interleaved" : "interleaved", NULL); } break; }