mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
Merge commit '29bc7bfba288ff8572ed967a8752a1dbde7b724b'
* commit '29bc7bfba288ff8572ed967a8752a1dbde7b724b': rtpproto: Write a warning if the input data written isn't RTP packetized Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
5ab467043a
@ -437,6 +437,10 @@ static int rtp_write(URLContext *h, const uint8_t *buf, int size)
|
||||
if (size < 2)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
if (buf[0] != (RTP_VERSION << 6))
|
||||
av_log(h, AV_LOG_WARNING, "Data doesn't look like RTP packets, "
|
||||
"make sure the RTP muxer is used\n");
|
||||
|
||||
if (s->write_to_source) {
|
||||
int fd;
|
||||
struct sockaddr_storage *source, temp_source;
|
||||
|
Loading…
Reference in New Issue
Block a user