From 13f8bbfb7051093e27ca2f4305f8a8bf88b679c9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 17 Mar 2015 18:56:24 +0100 Subject: [PATCH] avformat/mov: fix mis-detection of jpeg2000 Fixes demuxer choice for Ticket 2792 Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index de4004f3cc..1170dd489d 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3664,7 +3664,9 @@ static int mov_probe(AVProbeData *p) AV_RB64(p->buf+offset + 8) == 0)) { score = FFMAX(score, AVPROBE_SCORE_EXTENSION); } else if (tag == MKTAG('f','t','y','p') && - AV_RL32(p->buf + offset + 8) == MKTAG('j','p','2',' ')) { + ( AV_RL32(p->buf + offset + 8) == MKTAG('j','p','2',' ') + || AV_RL32(p->buf + offset + 8) == MKTAG('j','p','x',' ') + )) { score = FFMAX(score, 5); } else { score = AVPROBE_SCORE_MAX;