Просмотр исходного кода

audioconvert: fix type of av_get_default_channel_layout

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Marton Balint 13 лет назад
Родитель
Сommit
d2ba604421
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      libavutil/audioconvert.c
  2. 1 1
      libavutil/audioconvert.h

+ 1 - 1
libavutil/audioconvert.c

@@ -132,7 +132,7 @@ int av_get_channel_layout_nb_channels(int64_t channel_layout)
     return count;
 }
 
-int av_get_default_channel_layout(int nb_channels) {
+int64_t av_get_default_channel_layout(int nb_channels) {
     int i;
     for (i = 0; channel_layout_map[i].name; i++)
         if (nb_channels == channel_layout_map[i].nb_channels)

+ 1 - 1
libavutil/audioconvert.h

@@ -95,6 +95,6 @@ int av_get_channel_layout_nb_channels(int64_t channel_layout);
 /**
  * Return default channel layout for a given number of channels.
  */
-int av_get_default_channel_layout(int nb_channels);
+int64_t av_get_default_channel_layout(int nb_channels);
 
 #endif /* AVUTIL_AUDIOCONVERT_H */