rtsp/rdt: Assign the RTSPStream index to AVStream->id
authorMartin Storsjö <martin@martin.st>
Fri, 11 Feb 2011 21:36:47 +0000 (23:36 +0200)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 11 Feb 2011 21:58:19 +0000 (16:58 -0500)
commitb2dd842d21a0b441bb9f7092357f479beb6b6f69
treeb7ca221a40f106683f166f4589e72a0dfd8d5b60
parent74b1f96859eb967222fcb3eb4c72d949b5165a89
rtsp/rdt: Assign the RTSPStream index to AVStream->id

This is used for mapping AVStreams back to their corresponding
RTSPStream. Since d9c0510, the RTSPStream pointer isn't stored in
AVStream->priv_data any longer, breaking this mapping from AVStreams
to RTSPStreams.

Also, we don't need to clear the priv_data in rdt cleanup any longer,
since it isn't set to duplicate pointers.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/rdt.c
libavformat/rtsp.c
libavformat/rtspdec.c