Fix a crash in the H.263 RTP packetizer
authorMartin Storsjö <martin@martin.st>
Thu, 11 Mar 2010 16:26:14 +0000 (16:26 +0000)
committerMartin Storsjö <martin@martin.st>
Thu, 11 Mar 2010 16:26:14 +0000 (16:26 +0000)
commit34056cbba55f0131e8d2698717ab9e86e2da5178
tree4233eb261993a049777a7439a94aed443ff02711
parent70b462cc2940bce1023adb0780a83725526117f4
Fix a crash in the H.263 RTP packetizer

If size == 1 and buf[0] == 0 and buf[1] == 0 (the first byte after the
buffer), it would set size = -1 and crash in the later memcpy.

Originally committed as revision 22469 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtpenc_h263.c