Commit d2f66f53 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

flacdec: fix theoretical integer overflow

This code isn't actually used at the moment, unsure if I should
just remove it or not...

Coverity 1139811
parent 5c22bcf6
......@@ -421,7 +421,7 @@ gst_flac_dec_scan_got_frame (GstFlacDec * flacdec, guint8 * data, guint size,
}
if (flacdec->min_blocksize == flacdec->max_blocksize) {
*last_sample_num = (val + 1) * flacdec->min_blocksize;
*last_sample_num = ((guint64) val + 1) * flacdec->min_blocksize;
} else {
*last_sample_num = 0; /* FIXME: + length of last block in samples */
}
......
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