[FFmpeg-trac] #879(avformat:new): mxf files without FooterPartition
FFmpeg
trac at avcodec.org
Thu Jan 5 01:53:51 CET 2012
#879: mxf files without FooterPartition
----------------------------------+--------------------------------------
Reporter: zhukov | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: mxf | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
git-master
ffmpeg -i test.mxf
outputs the following
[mxf @ 0x7fce6183d800] inconsistent FooterPartition value: 1132608274 !=
4294967296
[mxf @ 0x7fce6183d800] PreviousPartition points to this partition or
forward
[mxf @ 0x7fce6183d800] error reading header metadata
ffmpeg 0.7.8 works fine on the very same file
my rough ideas why that might be:
./libavformat/mxfdec.c:458
footer_partition = avio_rb64(pb);
wants to output -1
i created a small patch
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 10512ef..43f247a 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -464,7 +464,7 @@ static int mxf_read_partition_pack(void *arg,
AVIOContext *pb, int tag, int size
avio_read(pb, op, sizeof(UID));
/* some files don'thave FooterPartition set in every partition */
- if (footer_partition) {
+ if (footer_partition != 4294967296) {
if (mxf->footer_partition && mxf->footer_partition !=
footer_partition) {
av_log(mxf->fc, AV_LOG_ERROR, "inconsistent FooterPartition
value: %" PRIi64 " != %" PRIi64 "\n",
mxf->footer_partition, footer_partition);
which did not help
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/879>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list