Check NAL unit size to avoid reading past the buffer.
authorThomas Devanneaux <thomdev@gmail.com>
Mon, 10 May 2010 07:08:57 +0000 (07:08 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Mon, 10 May 2010 07:08:57 +0000 (07:08 +0000)
commit52486603b5b8e2827627afbc8a2028fb74554920
tree99a4fca4452481ce349cd0ddd58d62507fc20173
parent8ad802e610771e1e63d6f105739b78b4aa6980d8
Check NAL unit size to avoid reading past the buffer.
This fixes issue1907

Patch by Thomas Devanneaux gmail(thomdev)

Originally committed as revision 23078 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264_mp4toannexb_bsf.c