summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad_ffmpeg.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-06 15:45:55 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-06 15:45:55 +0000
commitc6b1e6880b39160b1a37ab0b4fc0c3ca29ff7367 (patch)
tree39b9fce14d90aeeaaeb23e0d5011a37d20944377 /libmpcodecs/ad_ffmpeg.c
parent87e2b02f7ab91fe5855d5010e5280226f3627bc6 (diff)
downloadmpv-c6b1e6880b39160b1a37ab0b4fc0c3ca29ff7367.tar.bz2
mpv-c6b1e6880b39160b1a37ab0b4fc0c3ca29ff7367.tar.xz
Only call avcodec_close if the open succeeded before, otherwise avcodec_close
will crash (happens e.g. when encoding ends before any frames were actually encoded, e.g. when an MPEG file was cut down to much so it no longer contains a full video frame). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29835 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/ad_ffmpeg.c')
0 files changed, 0 insertions, 0 deletions