OSDN Git Service

hls: do not access pb->opaque for custom IO.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 13 Feb 2013 20:07:55 +0000 (21:07 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 24 Feb 2013 18:49:06 +0000 (19:49 +0100)
commitdb6e2e848b21d988fb108995387a8c7836da4dc7
tree350e69dd4c7234b46f4569c62a115fdf92e175f2
parent036df234fb289ad91c4b3d6f7329382c4e80d957
hls: do not access pb->opaque for custom IO.

As the name indicates we can't just assume what the
"opaque" field contains.
This fixes a crash in third-party applications see e.g.:
http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2126

This fixes also FFmpeg trac #2293, which is a different
third-party application.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/hls.c