summaryrefslogtreecommitdiff
path: root/libavformat/mxf.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-06-03 17:20:35 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-06-03 17:20:35 +0000
commit0e3ea3a26bac9b4262a1811f4ca0e1ed407ef22f (patch)
tree55ba4e46567d6a30f1c805465cbc04e006c8520c /libavformat/mxf.c
parent6dc55543284994403740012693c9a32648dddea3 (diff)
remove now useless sync key
Originally committed as revision 9188 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r--libavformat/mxf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index 2756113546..aa34596ce6 100644
--- a/libavformat/mxf.c
+++ b/libavformat/mxf.c
@@ -144,7 +144,6 @@ typedef struct MXFContext {
int packages_count;
MXFMetadataSet **metadata_sets;
int metadata_sets_count;
- const uint8_t *sync_key;
AVFormatContext *fc;
struct AVAES *aesc;
} MXFContext;
@@ -332,7 +331,6 @@ err_out:
static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
{
- MXFContext *mxf = s->priv_data;
KLVPacket klv;
while (!url_feof(&s->pb)) {
@@ -343,7 +341,6 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
#endif
if (IS_KLV_KEY(klv.key, mxf_encrypted_triplet_key)) {
int res = mxf_decrypt_triplet(s, pkt, &klv);
- mxf->sync_key = mxf_encrypted_triplet_key;
if (res < 0) {
av_log(s, AV_LOG_ERROR, "invalid encoded triplet\n");
return -1;
@@ -932,7 +929,6 @@ static int mxf_read_header(AVFormatContext *s, AVFormatParameters *ap)
MXFContext *mxf = s->priv_data;
KLVPacket klv;
- mxf->sync_key = mxf_essence_element_key;
if (!mxf_read_sync(&s->pb, mxf_header_partition_pack_key, 14)) {
av_log(s, AV_LOG_ERROR, "could not find header partition pack key\n");
return -1;