]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: use align == 0 for default alignment in avcodec_fill_audio_frame()
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 5 Apr 2012 23:01:21 +0000 (19:01 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 9 Apr 2012 14:20:35 +0000 (10:20 -0400)
Use default alignment in audio_get_buffer()

libavcodec/avcodec.h
libavcodec/utils.c
libavcodec/version.h

index 3af4df10103c2c38afaa1daa4059e62f72d2b487..ef43962c2d4a27c0eb2373f73e9f7bd8b1ea7912 100644 (file)
@@ -3828,7 +3828,7 @@ int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
  * @param sample_fmt  sample format
  * @param buf         buffer to use for frame data
  * @param buf_size    size of buffer
- * @param align       plane size sample alignment
+ * @param align       plane size sample alignment (0 = default)
  * @return            0 on success, negative error code on failure
  */
 int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels,
index 4037bfd32796116b57c3bf8d0ac63cecbb0f84fc..58b7865fa4e7311be798369840f6ad36bf1bfa23 100644 (file)
@@ -292,7 +292,7 @@ static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
 
     buf_size = av_samples_get_buffer_size(NULL, avctx->channels,
                                           frame->nb_samples, avctx->sample_fmt,
-                                          32);
+                                          0);
     if (buf_size < 0)
         return AVERROR(EINVAL);
 
@@ -334,7 +334,7 @@ static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
         }
         if ((ret = avcodec_fill_audio_frame(frame, avctx->channels,
                                             avctx->sample_fmt, buf->data[0],
-                                            buf->audio_data_size, 32)))
+                                            buf->audio_data_size, 0)))
             return ret;
 
         if (frame->extended_data == frame->data)
index 9e42a27ebb782704de2792102000afb772306af1..5719e7f5641b71a971a73f20b0cb77a187efb8a1 100644 (file)
@@ -22,7 +22,7 @@
 
 #define LIBAVCODEC_VERSION_MAJOR 54
 #define LIBAVCODEC_VERSION_MINOR 11
-#define LIBAVCODEC_VERSION_MICRO  0
+#define LIBAVCODEC_VERSION_MICRO  1
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \