[FFmpeg-devel] [PATCH] avcodec/adpcm: ADPCM_IMA_DK3 packets are padded to 16-bit packet boundary
Peter Ross
pross at xvid.org
Sat Mar 15 01:16:19 CET 2014
Fixes ticket #3461.
Signed-off-by: Peter Ross <pross at xvid.org>
---
libavcodec/adpcm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 56431cf..f7f8259 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -922,6 +922,9 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
*samples++ = c->status[0].predictor + c->status[1].predictor;
*samples++ = c->status[0].predictor - c->status[1].predictor;
}
+
+ if ((bytestream2_tell(&gb) & 1))
+ bytestream2_skip(&gb, 1);
break;
}
case AV_CODEC_ID_ADPCM_IMA_ISS:
--
1.8.3.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140315/099d438d/attachment.asc>
More information about the ffmpeg-devel
mailing list