id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
1740,avformat's av_write_trailer have bug.,kyh96403,,"Summary of the bug:
Lastest git version..
avformat/utils.c -> av_write_trailer have bug.
s->pb can be NULL.
{{{
    if (!(s->oformat->flags & AVFMT_NOFILE))
        avio_flush(s->pb);
}}}
So needed check s->pb is NULL or not.
{{{
    if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
        avio_flush(s->pb);
}}}
Or need check in avio_flush function.
{{{
void avio_flush(AVIOContext *s)
{
    if (!s)
        return 0;

    flush_buffer(s);
    s->must_flush = 0;
}

}}}
",defect,closed,important,avformat,git-master,fixed,,,,,0,0
