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/imbuf/intern/anim.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/imbuf/intern/anim.c')
-rw-r--r-- | source/blender/imbuf/intern/anim.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/anim.c b/source/blender/imbuf/intern/anim.c index d595154ce99..ed0d291fef4 100644 --- a/source/blender/imbuf/intern/anim.c +++ b/source/blender/imbuf/intern/anim.c @@ -558,7 +558,6 @@ static int startffmpeg(struct anim * anim) { /* Find the decoder for the video stream */ pCodec=avcodec_find_decoder(pCodecCtx->codec_id); if(pCodec==NULL) { - avcodec_close(pCodecCtx); av_close_input_file(pFormatCtx); return -1; } @@ -575,7 +574,6 @@ static int startffmpeg(struct anim * anim) { pCodecCtx->error_concealment= 3; if(avcodec_open(pCodecCtx, pCodec)<0) { - avcodec_close(pCodecCtx); av_close_input_file(pFormatCtx); return -1; } |