]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/amr.c
Merge commit '57231e4d5b467833fb289439cd35a92513bb55c1'
[ffmpeg] / libavformat / amr.c
index 36ff9b036a862369f1ffaa41f24532d30e9c4f35..07ab1bac824e71940086d50462cca5ea64ede15a 100644 (file)
@@ -25,7 +25,9 @@ Write and read amr data according to RFC3267, http://www.ietf.org/rfc/rfc3267.tx
 Only mono files are supported.
 
 */
+
 #include "libavutil/avassert.h"
+#include "libavutil/channel_layout.h"
 #include "avformat.h"
 #include "internal.h"
 
@@ -98,6 +100,7 @@ static int amr_read_header(AVFormatContext *s)
         st->codec->sample_rate = 8000;
     }
     st->codec->channels   = 1;
+    st->codec->channel_layout = AV_CH_LAYOUT_MONO;
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
     avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);