mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
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>
FFmpeg README ------------- 1) Documentation ---------------- * Read the documentation in the doc/ directory. 2) Licensing ------------ * See the LICENSE file.
Languages
C
90.3%
Assembly
7.8%
Makefile
1.3%
C++
0.2%
Objective-C
0.2%
Other
0.1%