aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-10-19 11:20:48 +0200
committerMartin Storsjö <martin@martin.st>2011-11-05 12:35:34 +0200
commited669c9becf9d03c25e78ee98c2e4de564b854fc (patch)
tree8071b01baf579d26f9c961d37ae8f7564ec132e1
parentb6d08f40aa9893c77a982fc17c289da0c27ccd96 (diff)
downloadffmpeg-ed669c9becf9d03c25e78ee98c2e4de564b854fc.tar.gz
movenc: Set a correct packet size for AMR-NB mode 15, "no data"
These packets are valid packets, and consist of 1 byte (which contains the mode bits). This had been analyzed and reported by Igor Levin, igor d levin comverse com. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index fb8749c6d5..b7314dca41 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2004,7 +2004,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) {