aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorAndreas Öman <andreas@lonelycoder.com>2008-01-07 20:42:45 +0000
committerAndreas Öman <andreas@lonelycoder.com>2008-01-07 20:42:45 +0000
commit8e4270c551533598a8c9861f7c75eae04d0e38ac (patch)
tree8e91a8124b708e058592dfcb9b6c1af4f8394208 /ffmpeg.c
parent03d83abcc686fe67d6126c8562224e2e01395971 (diff)
downloadffmpeg-8e4270c551533598a8c9861f7c75eae04d0e38ac.tar.gz
Dont crash if resampling is requested but no audio packets are ever processed.
Originally committed as revision 11449 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 6c22053c24..12db8a8c95 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2057,7 +2057,7 @@ static int av_encode(AVFormatContext **output_files,
av_free(ost->pict_tmp.data[0]);
if (ost->video_resample)
sws_freeContext(ost->img_resample_ctx);
- if (ost->audio_resample)
+ if (ost->resample)
audio_resample_close(ost->resample);
av_free(ost);
}