Re: [FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-29 Thread wm4
On Sun, 28 May 2017 21:20:12 +0200 Nicolas George wrote: > As is, this patch would make something that is currently possible with > the API (implementing protocols that rely on empty packets) impossible, > and that cannot be accepted. Which ones? ___ f

Re: [FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-28 Thread Nicolas George
Le sextidi 6 prairial, an CCXXV, Daniel Kučera a écrit : > If we return 0, then it is considered as EOF by calling functions > (e.g. avio_read). So returning 0 means: "this is end of stream" and > not: "we received zero length packet, but more data may be coming" and > thus the stream processing en

Re: [FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-28 Thread Daniel Kučera
2017-05-23 20:44 GMT+02:00 Daniel Kucera : > Time to time some devices send UDP packets without payload. > ffmpeg previously exited on receiving such packet, this patch > fixes this behaviour. > > Signed-off-by: Daniel Kucera > --- > libavformat/udp.c | 6 +- > 1 file changed, 5 insertions(+)

Re: [FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-25 Thread Daniel Kučera
2017-05-24 9:02 GMT+02:00 Nicolas George : > Le quartidi 4 prairial, an CCXXV, Daniel Kucera a écrit : >> Time to time some devices send UDP packets without payload. >> ffmpeg previously exited on receiving such packet, this patch >> fixes this behaviour. >> >> Signed-off-by: Daniel Kucera >> ---

Re: [FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-24 Thread Daniel Kučera
2017-05-24 10:10 GMT+02:00 Daniel Kučera : > 2017-05-24 9:02 GMT+02:00 Nicolas George : >> >> Le quartidi 4 prairial, an CCXXV, Daniel Kucera a écrit : >> > Time to time some devices send UDP packets without payload. >> > ffmpeg previously exited on receiving such packet, this patch >> > fixes this

Re: [FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-24 Thread Daniel Kučera
2017-05-24 9:02 GMT+02:00 Nicolas George : > > Le quartidi 4 prairial, an CCXXV, Daniel Kucera a écrit : > > Time to time some devices send UDP packets without payload. > > ffmpeg previously exited on receiving such packet, this patch > > fixes this behaviour. > > > > Signed-off-by: Daniel Kucera

Re: [FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-24 Thread Nicolas George
Le quartidi 4 prairial, an CCXXV, Daniel Kucera a écrit : > Time to time some devices send UDP packets without payload. > ffmpeg previously exited on receiving such packet, this patch > fixes this behaviour. > > Signed-off-by: Daniel Kucera > --- > libavformat/udp.c | 6 +- > 1 file changed,

[FFmpeg-devel] [PATCH] udp: ignore UDP packets without payload

2017-05-23 Thread Daniel Kucera
Time to time some devices send UDP packets without payload. ffmpeg previously exited on receiving such packet, this patch fixes this behaviour. Signed-off-by: Daniel Kucera --- libavformat/udp.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/udp.c b/libavfor