Ticket #2145: avienc_avih_dwMaxBytesPerSec.patch

File avienc_avih_dwMaxBytesPerSec.patch, 966 bytes (added by tateu, 3 years ago)
  • libavformat/avienc.c

    diff --git a/libavformat/avienc.c b/libavformat/avienc.c
    index 15f0794..896ffa5 100644
    a b static int avi_write_header(AVFormatContext *s) 
    189189    } else { 
    190190        avio_wl32(pb, 0); 
    191191    } 
    192     avio_wl32(pb, bitrate / 8); /* XXX: not quite exact */ 
     192    avio_wl32(pb, 0); /* XXX: not quite exact */ 
    193193    avio_wl32(pb, 0); /* padding */ 
    194194    if (!pb->seekable) 
    195195        avio_wl32(pb, AVIF_TRUSTCKTYPE | AVIF_ISINTERLEAVED); /* flags */ 
    static int avi_write_header(AVFormatContext *s) 
    199199    avio_wl32(pb, nb_frames); /* nb frames, filled later */ 
    200200    avio_wl32(pb, 0); /* initial frame */ 
    201201    avio_wl32(pb, s->nb_streams); /* nb streams */ 
    202     avio_wl32(pb, 1024 * 1024); /* suggested buffer size */ 
     202    avio_wl32(pb, 0); /* suggested buffer size */ 
    203203    if(video_enc){ 
    204204        avio_wl32(pb, video_enc->width); 
    205205        avio_wl32(pb, video_enc->height);