From 3e1415125447faab44dbd55ae91cc9b3acf22532 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 28 Nov 2009 20:24:57 +0100 Subject: [PATCH 1/1] Do not tell FFMPEG that the packet is bigger than current budget --- libavformat/frsh.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/frsh.c b/libavformat/frsh.c index d4fae188a..5644db283 100644 --- a/libavformat/frsh.c +++ b/libavformat/frsh.c @@ -347,6 +347,10 @@ static int frsh_write(URLContext *h, uint8_t *buf, int size) int ret; ret = frsh_send_sync(s->sepoint, buf, size); + /* Do not tell FFMPEG that the packet is bigger than current + * budget. */ + if (ret < 0 && errno == ENOSR) + ret = 0; return ret; } -- 2.39.2