[FFmpeg-cvslog] avcodec/diracdec: Make data_unit_size unsigned
Michael Niedermayer
git at videolan.org
Fri May 15 00:55:00 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 14 23:16:06 2015 +0200| [8f1afde11d4d76fc2444074b45d76a5113d1d748] | committer: Michael Niedermayer
avcodec/diracdec: Make data_unit_size unsigned
Fixes CID1271788
with this change the value is more explicitly checked, it was fully checked
before though
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f1afde11d4d76fc2444074b45d76a5113d1d748
---
libavcodec/diracdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index b64ab95..0213048 100644
--- a/libavcodec/diracdec.c
+++ b/libavcodec/diracdec.c
@@ -1933,8 +1933,9 @@ static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVFrame *picture = data;
uint8_t *buf = pkt->data;
int buf_size = pkt->size;
- int i, data_unit_size, buf_idx = 0;
+ int i, buf_idx = 0;
int ret;
+ unsigned data_unit_size;
/* release unused frames */
for (i = 0; i < MAX_FRAMES; i++)
More information about the ffmpeg-cvslog
mailing list