Commit ed669c9b authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Martin Storsjö

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: 's avatarMartin Storsjö <martin@martin.st>
parent b6d08f40
...@@ -2004,7 +2004,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -2004,7 +2004,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
if (enc->codec_id == CODEC_ID_AMR_NB) { if (enc->codec_id == CODEC_ID_AMR_NB) {
/* We must find out how many AMR blocks there are in one packet */ /* We must find out how many AMR blocks there are in one packet */
static uint16_t packed_size[16] = 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; int len = 0;
while (len < size && samplesInChunk < 100) { while (len < size && samplesInChunk < 100) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment