Do not do free AVStream in case of error, this is not supposed to be
authorVitor Sessak <vitor1001@gmail.com>
Sat, 12 Sep 2009 16:23:13 +0000 (16:23 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 12 Sep 2009 16:23:13 +0000 (16:23 +0000)
done by the demuxer.

Fix issue 1378.

Originally committed as revision 19825 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/oss_audio.c

index 5b0d02a..ed1a7a1 100644 (file)
@@ -228,7 +228,6 @@ static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap)
 
     ret = audio_open(s1, 0, s1->filename);
     if (ret < 0) {
 
     ret = audio_open(s1, 0, s1->filename);
     if (ret < 0) {
-        av_free(st);
         return AVERROR(EIO);
     }
 
         return AVERROR(EIO);
     }