aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-19 11:20:48 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-19 11:20:48 +0200
commit891f76b0a83451fd1ce6855ce84f800e7bbd92f2 (patch)
treeba3450d264790874f65fba564ac91c8bcf72a577
parentf0ff822ccb9b2bd46063e35fcb1681cd0affecac (diff)
downloadffmpeg-891f76b0a83451fd1ce6855ce84f800e7bbd92f2.tar.gz
Fix AMR block length for no data mode when muxing mov.
Fixes ticket #550. This had been analyzed and reported by Igor Levin, igor d levin comverse com
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 5fd54fcb77..1d5a96e51a 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2013,7 +2013,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
if (enc->codec_id == CODEC_ID_AMR_NB) {
/* We must find out how many AMR blocks there are in one packet */
static uint16_t packed_size[16] =
- {13, 14, 16, 18, 20, 21, 27, 32, 6, 0, 0, 0, 0, 0, 0, 0};
+ {13, 14, 16, 18, 20, 21, 27, 32, 6, 0, 0, 0, 0, 0, 0, 1};
int len = 0;
while (len < size && samplesInChunk < 100) {