changeset 5775:38f220befc32 libavcodec

Replace "signed short" typecast with "int16_t" as suggested by Mans Rullgard. Value at the right side is 16 bit length signed. We can not know for sure that short is in fact 16 bits, even if this virtually always is the case.
author voroshil
date Thu, 04 Oct 2007 15:13:42 +0000
parents e71de81878c4
children 73ec16dbcbc1
files adpcm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/adpcm.c	Thu Oct 04 06:53:12 2007 +0000
+++ b/adpcm.c	Thu Oct 04 15:13:42 2007 +0000
@@ -1184,7 +1184,7 @@
         break;
     case CODEC_ID_ADPCM_IMA_AMV:
     case CODEC_ID_ADPCM_IMA_SMJPEG:
-        c->status[0].predictor = (signed short)bytestream_get_le16(&src);
+        c->status[0].predictor = (int16_t)bytestream_get_le16(&src);
         c->status[0].step_index = bytestream_get_le16(&src);
 
         if (avctx->codec->id == CODEC_ID_ADPCM_IMA_AMV)