Commit 9d2dbe68 authored by michael's avatar michael

allow NULL write_header() and write_trailer()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4675 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b146f5a3
......@@ -2253,9 +2253,11 @@ int av_write_header(AVFormatContext *s)
}
}
if(s->oformat->write_header){
ret = s->oformat->write_header(s);
if (ret < 0)
return ret;
}
/* init PTS generation */
for(i=0;i<s->nb_streams;i++) {
......@@ -2540,6 +2542,7 @@ int av_write_trailer(AVFormatContext *s)
goto fail;
}
if(s->oformat->write_trailer)
ret = s->oformat->write_trailer(s);
fail:
if(ret == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment