diff options
author | Andrew Wason <rectalogic@rectalogic.com> | 2012-02-17 16:24:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-17 16:24:18 +0100 |
commit | a0e44414dfc4ab2d9aa5fdd207fa6ea5f39658e8 (patch) | |
tree | 18a93cc7a9d513f1abc849a3b59d4bbe44ef485d /libavformat/rtpdec.c | |
parent | 1b84cf41e0776985d9e9336d1629888e7e551ad8 (diff) | |
download | ffmpeg-a0e44414dfc4ab2d9aa5fdd207fa6ea5f39658e8.tar.gz |
movenc: leave st->codec->frame_size as is instead of forcing it to 1.
Muxing pcm audio in MOV using avcodec_encode_audio() was failing
because avcodec_encode_audio() returns an incorrect packet size of 4
bytes. This can be reproduced by modifying the sample
ffmpeg/doc/examples/muxing.c to encode PCM, see ML patch
muxing-test.diff
I git bisected and commit 89ddff92a385 is the one that broke this. In
mov_write_header() if st->codec->frame_size <= 1 it sets it to 1. Then
avcodec_encode_audio() sets frame->nb_samples = avctx->frame_size, and
frame->nb_samples of 1 is used to compute a packet size of 4 bytes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec.c')
0 files changed, 0 insertions, 0 deletions