diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-05 19:01:21 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-09 10:20:35 -0400 |
commit | c58846f3a8b64def1368f0d1bf42e15c75d09a85 (patch) | |
tree | d34497c119759fc58b8fa4dd8009be44e6d22daa /libavcodec/utils.c | |
parent | 0109a09dc3850eb5dbff84a7bb50eb252a5a8f22 (diff) | |
download | ffmpeg-c58846f3a8b64def1368f0d1bf42e15c75d09a85.tar.gz |
avcodec: use align == 0 for default alignment in avcodec_fill_audio_frame()
Use default alignment in audio_get_buffer()
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 4037bfd327..58b7865fa4 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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) |