summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-01-08 11:18:17 +0000
committerRodeo <[email protected]>2014-01-08 11:18:17 +0000
commita42fd932a3fdc837bd7d7c8d83f7f0a335f18ce7 (patch)
tree1bae8fdce2ad7f8374aa2888b632ba9b8e875ac6 /libhb
parent09fb89f703ce6f0cadf88ff94627702d7ea0880e (diff)
muxavformat: don't overwrite the last track's parameters when adding attachments.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5961 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/muxavformat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index 5dc477d6e..7766d9854 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -774,7 +774,7 @@ static int avformatInit( hb_mux_object_t * m )
avcodec_get_context_defaults3(st->codec, NULL);
st->codec->codec_type = AVMEDIA_TYPE_ATTACHMENT;
- track->st->codec->codec_id = AV_CODEC_ID_TTF;
+ st->codec->codec_id = AV_CODEC_ID_TTF;
priv_size = attachment->size;
priv_data = av_malloc(priv_size);
@@ -785,8 +785,8 @@ static int avformatInit( hb_mux_object_t * m )
}
memcpy(priv_data, attachment->data, priv_size);
- track->st->codec->extradata = priv_data;
- track->st->codec->extradata_size = priv_size;
+ st->codec->extradata = priv_data;
+ st->codec->extradata_size = priv_size;
av_dict_set(&st->metadata, "filename", attachment->name, 0);
}