summaryrefslogtreecommitdiffstats
path: root/libhb/muxmkv.c
diff options
context:
space:
mode:
authorsaintdev <[email protected]>2007-07-14 08:26:43 +0000
committersaintdev <[email protected]>2007-07-14 08:26:43 +0000
commita42691848dda319293e43b5d0e97514705a78870 (patch)
treed126849d4517e8d77cf3d2e0ab8d5a55febea6c7 /libhb/muxmkv.c
parentd779db015e45de223ff533649d2a16319da713e0 (diff)
Fix AAC audio inside MKV container crash.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@681 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxmkv.c')
-rw-r--r--libhb/muxmkv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c
index 653fe74ac..9bb4ece58 100644
--- a/libhb/muxmkv.c
+++ b/libhb/muxmkv.c
@@ -192,7 +192,7 @@ static int MKVInit( hb_mux_object_t * m )
track->audio.channels = HB_AMIXDOWN_GET_DISCRETE_CHANNEL_COUNT(audio->amixdown);
// track->defaultDuration = job->arate * 1000;
mux_data->track = mk_createTrack(m->file, track);
- if (track->codecPrivate != NULL)
+ if (job->acodec == HB_ACODEC_VORBIS && track->codecPrivate != NULL)
free(track->codecPrivate);
}