- 11 Oct, 2011 17 commits
-
-
Mans Rullgard authored
The level_code expression includes a shift which is invalid in those cases where the value is not used. Moving the calculation to the branch where the result is used avoids these. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Mans Rullgard authored
These additions might overflow the signed range for large input values. Converting to unsigned before the addition rather than after avoids such undefined behaviour. The result under normal two's complement wraparound remains unchanged. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Luca Barbato authored
Return -1 instead of ENOMEM if entries is 0. Fixes a av_malloc(0) crash in macosx.
-
Luca Barbato authored
-
Anton Khirnov authored
Bug found by Laurent Aimar fenrir at videolan org
-
Raivo Hool authored
Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Raivo Hool authored
Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Diego Biurrun authored
-
Diego Biurrun authored
-
Diego Biurrun authored
-
Justin Ruggles authored
-
Justin Ruggles authored
-
Justin Ruggles authored
-
Justin Ruggles authored
Makes the code easier to understand.
-
Mans Rullgard authored
The PPS may contain a few trailing elements whose presence is only signalled by data remaining after the the mandatory part has been parsed. The current code fails to take into account the rbsp_trailing_bits() when deciding whether to parse these optional elements. Assuming no unnecessary padding bytes are passed to this function, the optional elements are present if either more than 8 extra bits remain or the remaining bits do not form a valid rbsp_trailing_bits() after the mandatory PPS elements have been parsed. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Mans Rullgard authored
Zero-length get_bits() is undefined, must check before calling. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Mans Rullgard authored
The way this value is used, it should be an unsigned type. While the numerical value has no meaning, unsigned wraparound is relied upon. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- 10 Oct, 2011 23 commits
-
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Laurent Aimar authored
Signed-off-by:
Janne Grunau <janne-libav@jannau.net>
-
Anton Khirnov authored
write_number() does the actual writing of the supplied number to destination. Move finding the option and choosing destination address out of it.
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
Also stop attempting to honor the alloc parameter, as things break horribly in that case. It will be removed in upcoming successor to av_set_string3.
-
Mans Rullgard authored
Keeping byte values read from the file as unsigned is consistent with how they are subsequently used and avoids an undefined left shift by 24 when bit 7 is set. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Alex Converse authored
-
Baptiste Coudurier authored
-
Kostya Shishkov authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Justin Ruggles authored
also return AVERROR(EINVAL) instead of -1.
-