You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavf/mxfdec: Limit score for files with run-in.
Only return AVPROBE_SCORE_MAX if the header partition pack key is at the start of the file. Fixes ticket #8846. Reviewed-by: Tomas Härdin
This commit is contained in:
@@ -3615,7 +3615,7 @@ static int mxf_probe(const AVProbeData *p) {
|
|||||||
AV_RN32(bufp+ 4) == AV_RN32(mxf_header_partition_pack_key+ 4) &&
|
AV_RN32(bufp+ 4) == AV_RN32(mxf_header_partition_pack_key+ 4) &&
|
||||||
AV_RN32(bufp+ 8) == AV_RN32(mxf_header_partition_pack_key+ 8) &&
|
AV_RN32(bufp+ 8) == AV_RN32(mxf_header_partition_pack_key+ 8) &&
|
||||||
AV_RN16(bufp+12) == AV_RN16(mxf_header_partition_pack_key+12))
|
AV_RN16(bufp+12) == AV_RN16(mxf_header_partition_pack_key+12))
|
||||||
return AVPROBE_SCORE_MAX;
|
return bufp == p->buf ? AVPROBE_SCORE_MAX : AVPROBE_SCORE_MAX - 1;
|
||||||
bufp ++;
|
bufp ++;
|
||||||
} else
|
} else
|
||||||
bufp += 10;
|
bufp += 10;
|
||||||
|
Reference in New Issue
Block a user