[FFmpeg-devel] [PATCH 11/11] libavformat/mxfdec.c: Log unknown metadata tags. This should help in seeing missing features.
Alexis Ballier
aballier at gentoo.org
Wed Oct 21 18:01:05 CEST 2015
---
libavformat/mxfdec.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 020294d..606afe6 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -727,6 +727,8 @@ static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int siz
av_log(mxf->fc, AV_LOG_VERBOSE, "Multiple packages_refs\n");
av_free(mxf->packages_refs);
return mxf_read_strong_ref_array(pb, &mxf->packages_refs, &mxf->packages_count);
+ default:
+ av_log(mxf->fc, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -752,6 +754,8 @@ static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag, int size, U
case 0x1102:
source_clip->source_track_id = avio_rb32(pb);
break;
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -775,6 +779,8 @@ static int mxf_read_timecode_component(void *arg, AVIOContext *pb, int tag, int
case 0x1503:
mxf_timecode->drop_frame = avio_r8(pb);
break;
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -786,6 +792,8 @@ static int mxf_read_pulldown_component(void *arg, AVIOContext *pb, int tag, int
case 0x0d01:
avio_read(pb, mxf_pulldown->input_segment_ref, 16);
break;
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -810,6 +818,8 @@ static int mxf_read_track(void *arg, AVIOContext *pb, int tag, int size, UID uid
case 0x4803:
avio_read(pb, track->sequence_ref, 16);
break;
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -830,6 +840,8 @@ static int mxf_read_sequence(void *arg, AVIOContext *pb, int tag, int size, UID
case 0x1001:
return mxf_read_strong_ref_array(pb, &sequence->structural_components_refs,
&sequence->structural_components_count);
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -844,6 +856,8 @@ static int mxf_read_essence_group(void *arg, AVIOContext *pb, int tag, int size,
case 0x0501:
return mxf_read_strong_ref_array(pb, &essence_group->structural_components_refs,
&essence_group->structural_components_count);
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -903,6 +917,8 @@ static int mxf_read_package(void *arg, AVIOContext *pb, int tag, int size, UID u
case 0x4406:
return mxf_read_strong_ref_array(pb, &package->comment_refs,
&package->comment_count);
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -995,6 +1011,8 @@ static int mxf_read_index_table_segment(void *arg, AVIOContext *pb, int tag, int
segment->index_duration = avio_rb64(pb);
av_log(NULL, AV_LOG_TRACE, "IndexDuration %"PRId64"\n", segment->index_duration);
break;
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -1132,6 +1150,8 @@ static int mxf_read_tagged_value(void *arg, AVIOContext *pb, int tag, int size,
return mxf_read_utf16be_string(pb, size, &tagged_value->name);
case 0x5003:
return mxf_read_indirect_value(tagged_value, pb, size);
+ default:
+ av_log(NULL, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
@@ -2270,6 +2290,8 @@ static int mxf_read_identification_metadata(void *arg, AVIOContext *pb, int tag,
case 0x3C0A:
SET_UID_METADATA(pb, "uid", uid, str);
break;
+ default:
+ av_log(mxf->fc, AV_LOG_DEBUG, "%s: Unknown tag 0x%x\n", __FUNCTION__, tag);
}
return 0;
}
--
2.6.2
More information about the ffmpeg-devel
mailing list