diff options
author | Peter Schlaile <peter@schlaile.de> | 2006-05-21 16:20:45 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2006-05-21 16:20:45 +0400 |
commit | 3874f7cd97a2dc6951e2fd32cc34a12c2b86cfcf (patch) | |
tree | b6c7dbdb9ffb677913e5cbb9a5164eb6d349263e /source/blender/src/hddaudio.c | |
parent | 55755954ed2419399e16f23672848939c78ec524 (diff) |
==FFMPEG==
Bugfixes: If we got problems on open, don't close a codec context, that
was never created. (read: don't dump core ;-)
Diffstat (limited to 'source/blender/src/hddaudio.c')
-rw-r--r-- | source/blender/src/hddaudio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/src/hddaudio.c b/source/blender/src/hddaudio.c index c7dd33ab977..76297b29983 100644 --- a/source/blender/src/hddaudio.c +++ b/source/blender/src/hddaudio.c @@ -140,13 +140,11 @@ struct hdaudio * sound_open_hdaudio(char * filename) /* Find the decoder for the audio stream */ pCodec = avcodec_find_decoder(pCodecCtx->codec_id); if(pCodec == NULL) { - avcodec_close(pCodecCtx); av_close_input_file(pFormatCtx); return 0; } if(avcodec_open(pCodecCtx, pCodec)<0) { - avcodec_close(pCodecCtx); av_close_input_file(pFormatCtx); return 0; } |