summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-01-06 15:22:58 +0000
committerMartin Storsjö <martin@martin.st>2011-01-06 15:22:58 +0000
commita92c30d76ef3bc58be47acb8f32a2fd0bfe403e3 (patch)
treedac66e093e6b393ee38faff0a89b264a67458edc /libavformat/rtsp.h
parent21a569f3022e968d74bfde4d1bfff8dab5edd41c (diff)
rtsp: Allow requesting of filtering of source packets
If filtered, only packets from the right source address and port are received. To test, play back e.g. some mpeg4 video RTSP stream (where the video stream is the first stream in the presentation) over UDP. While receiving this stream, send another stream to the same port: ffmpeg -re -i <whatever> -vcodec mpeg4 -an -f rtp rtp://127.0.0.1:5000?localport=1234 Normally, the RTSP playback reports lots of errors at this point. If the RTSP stream has the ?filter_src option enabled, these interferring packets are ignored. Originally committed as revision 26246 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r--libavformat/rtsp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index 628ce370ec..eee07ac0e7 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -309,6 +309,10 @@ typedef struct RTSPState {
/** Reusable buffer for receiving packets */
uint8_t* recvbuf;
+
+ /** Filter incoming UDP packets - receive packets only from the right
+ * source address and port. */
+ int filter_source;
} RTSPState;
/**