1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavformat
Ronald S. Bultje eafb17d140 Don't let finalize_packet() touch pkt->stream_index. Instead, let individual
payload handlers take care of that themselves at their own option. What this
patch really does is "fix" a bug in MS-RTSP protocol where incoming packets
are always coming in over the connection (UDP) or interleave-id (TCP) of
the stream-id of the first ASF packet in the RTP packet. However, RTP packets
may contain multiple ASF packets (and usually do, from what I can see), and
therefore this leads to playback bugs. The intended stream-id per ASF packet
is given in the respective ASF packet header. The ASF demuxer will correctly
read this and set pkt->stream_index, but since the "stream" parameter can
not be known to rtpdec.c or any of the RTP/RTSP code, the "st" parameter
in all these functions is basically invalid. Therefore, using st->id as
pkt->stream_index leads to various playback bugs. The result of this patch
is that pkt->stream_index is left untouched for RTP/ASF (and possibly for
other payloads that have similar behaviour).

The patch was discussed in the "[PATCH] rtpdec.c: don't overwrite
pkt->stream_index in finalize_packet()" thread on the mailinglist.

Originally committed as revision 17767 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 13:51:34 +00:00
..
2009-02-02 23:43:12 +00:00
2008-09-26 19:42:21 +00:00
2009-01-16 01:20:31 +00:00
2009-03-01 16:35:25 +00:00
2009-02-21 20:57:46 +00:00
2008-12-11 22:34:14 +00:00
2008-12-11 22:34:14 +00:00
2009-02-26 08:45:59 +00:00
2009-02-12 02:17:16 +00:00
2009-02-28 17:31:25 +00:00
2008-12-13 21:58:17 +00:00
2009-02-28 23:34:16 +00:00
2009-02-12 17:26:06 +00:00
2009-02-08 21:42:06 +00:00
2009-02-18 00:02:38 +00:00
2008-12-11 19:06:24 +00:00
2009-02-27 23:10:34 +00:00
2009-02-27 23:12:14 +00:00
2008-12-03 15:23:30 +00:00
2008-11-06 01:50:56 +00:00
2008-11-06 01:50:56 +00:00
2009-03-01 16:35:25 +00:00
2009-03-01 15:28:56 +00:00
2009-02-17 21:40:38 +00:00
2009-02-17 21:40:38 +00:00
2009-02-17 21:40:38 +00:00
2009-02-26 22:39:53 +00:00
2009-02-28 19:34:50 +00:00
2009-02-16 14:45:05 +00:00
2009-02-12 17:26:06 +00:00
2009-03-03 12:57:07 +00:00
2008-12-11 22:34:14 +00:00
2008-12-11 22:34:14 +00:00
2009-02-26 22:35:26 +00:00