OSDN Git Service

rtsp: Set the real_setup pointer properly, avoid out of bounds memory accesses
authorYuriy Kaminskiy <yumkam@mail.ru>
Sat, 6 Nov 2010 23:26:49 +0000 (23:26 +0000)
committerMartin Storsjö <martin@martin.st>
Sat, 6 Nov 2010 23:26:49 +0000 (23:26 +0000)
commitc77549c510370eaaa2e2bb1f15d1a30f29e30950
tree3d49ff307967ef16d64bdc5ec9783f147663e117
parentc4d5ee233abcce9159b699f4e695db96864f2b00
rtsp: Set the real_setup pointer properly, avoid out of bounds memory accesses

This fixes a regression since svn rev 24752, where the real_setup pointer
was set incorrectly. The arithmetic with the real_setup_cache pointer
is in units of enum AVDiscard, so the sizeof multiplication should be removed.

Patch by Yuriy Kaminskiy, yumkam at mail dot ru.

Originally committed as revision 25684 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtspdec.c