aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/diracdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-14 23:16:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-14 23:18:49 +0200
commit8f1afde11d4d76fc2444074b45d76a5113d1d748 (patch)
tree2acc75083359071fb1b602ef200ce1e58600b2a2 /libavcodec/diracdec.c
parenta9bf628bfdad142763880a3d1ccb6058040dda57 (diff)
downloadffmpeg-8f1afde11d4d76fc2444074b45d76a5113d1d748.tar.gz
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@gmx.at>
Diffstat (limited to 'libavcodec/diracdec.c')
-rw-r--r--libavcodec/diracdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index b64ab95f02..0213048d3b 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++)