]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Do not tell FFMPEG that the packet is bigger than current budget
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 28 Nov 2009 19:24:57 +0000 (20:24 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 28 Nov 2009 19:24:57 +0000 (20:24 +0100)
libavformat/frsh.c

index d4fae188a2fcc5fa2a390b7c4b75832d99c61cee..5644db2831b6934948f4e6233478d2b38bcad09e 100644 (file)
@@ -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;
 }