diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-21 01:22:25 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-21 01:22:25 +0000 |
commit | 8767060cd2e5f9a29251f90b98b0f0cdafad93ef (patch) | |
tree | 9f5e0c38f859a6f9164a723f4ec9c0eecfc989cb /ffmpeg.c | |
parent | b189e6705ab47937248877a620be1a047d9741fe (diff) | |
download | ffmpeg-8767060cd2e5f9a29251f90b98b0f0cdafad93ef.tar.gz |
Fix bug introduced by r12827.
If av_exit() was called after an AVFormatContext was created, but before
its file was opened, av_exit() would pass a NULL pointer to url_fclose().
Originally committed as revision 12915 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -380,7 +380,7 @@ static int av_exit(int ret) /* maybe av_close_output_file ??? */ AVFormatContext *s = output_files[i]; int j; - if (!(s->oformat->flags & AVFMT_NOFILE)) + if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb) url_fclose(s->pb); for(j=0;j<s->nb_streams;j++) { av_free(s->streams[j]->codec); |