Commit 8f1cbe00 authored by bcoudurier's avatar bcoudurier

add some debug infos

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5849 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 25a1887d
...@@ -221,6 +221,9 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -221,6 +221,9 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
av_log(s, AV_LOG_ERROR, "error reading KLV packet\n"); av_log(s, AV_LOG_ERROR, "error reading KLV packet\n");
return -1; return -1;
} }
#ifdef DEBUG
PRINT_KEY(klv.key);
#endif
if (IS_KLV_KEY(klv.key, mxf_essence_element_key)) { if (IS_KLV_KEY(klv.key, mxf_essence_element_key)) {
av_get_packet(&s->pb, pkt, klv.length); av_get_packet(&s->pb, pkt, klv.length);
pkt->stream_index = mxf_get_stream_index(s, &klv); pkt->stream_index = mxf_get_stream_index(s, &klv);
...@@ -816,6 +819,9 @@ static int mxf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -816,6 +819,9 @@ static int mxf_read_header(AVFormatContext *s, AVFormatParameters *ap)
av_log(s, AV_LOG_ERROR, "error reading KLV packet\n"); av_log(s, AV_LOG_ERROR, "error reading KLV packet\n");
return -1; return -1;
} }
#ifdef DEBUG
PRINT_KEY(klv.key);
#endif
if (IS_KLV_KEY(klv.key, mxf_metadata_track_key)) if (IS_KLV_KEY(klv.key, mxf_metadata_track_key))
ret = mxf_read_metadata_track(mxf, &klv); ret = mxf_read_metadata_track(mxf, &klv);
else if (IS_KLV_KEY(klv.key, mxf_metadata_static_track_key)) else if (IS_KLV_KEY(klv.key, mxf_metadata_static_track_key))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment