Ticket #346: 0001-ffserver-fix-missing-buffer-set.patch

File 0001-ffserver-fix-missing-buffer-set.patch, 1.3 KB (added by Miroslav Slugeň, 15 years ago)

Signed patch

  • ffserver.c

    From 170629a0252d7dcf33639217871fbf3568fa3b8c Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Miroslav=20Sluge=C5=88?= <thunder.m@seznam.cz>
    Date: Mon, 7 Nov 2011 11:48:43 +0100
    Subject: [PATCH] ffserver: add missing buffer set after rewrite
     av_open_input_file to avformat_open_input.
    Fixes Ticket346
    ---
     ffserver.c |    6 ++++++
     1 files changed, 6 insertions(+), 0 deletions(-)
    
    diff --git a/ffserver.c b/ffserver.c
    index 90c4ae6..00604d8 100644
    a b static int open_input_stream(HTTPContext *c, const char *info)  
    21652165        http_log("could not open %s: %d\n", input_filename, ret);
    21662166        return -1;
    21672167    }
     2168
     2169    /* set buffer size */
     2170    if (buf_size > 0) ffio_set_buf_size(s->pb, buf_size);
     2171
    21682172    s->flags |= AVFMT_FLAG_GENPTS;
    21692173    c->fmt_in = s;
    21702174    if (strcmp(s->iformat->name, "ffm") && avformat_find_stream_info(c->fmt_in, NULL) < 0) {
    static void build_feed_streams(void)  
    36743678            int matches = 0;
    36753679
    36763680            if (avformat_open_input(&s, feed->feed_filename, NULL, NULL) >= 0) {
     3681                /* set buffer size */
     3682                ffio_set_buf_size(s->pb, FFM_PACKET_SIZE);
    36773683                /* Now see if it matches */
    36783684                if (s->nb_streams == feed->nb_streams) {
    36793685                    matches = 1;