Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-04 20:40:21 +0400
committerPaul B Mahol <onemda@gmail.com>2012-11-04 20:50:58 +0400
commitc4dd4f19f335c531ccc0afacc596b54ef2d2359e (patch)
treedcc011e9c5b21baf0331f9152fce3c892e305ebf /libavformat/smush.c
parenta15adabdd32c8736c143fcbef36a0f4a75f772f0 (diff)
smush: improve probing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/smush.c')
-rw-r--r--libavformat/smush.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/smush.c b/libavformat/smush.c
index b164c7516e..19ac5d9491 100644
--- a/libavformat/smush.c
+++ b/libavformat/smush.c
@@ -32,8 +32,10 @@ typedef struct {
static int smush_read_probe(AVProbeData *p)
{
- if ((AV_RL32(p->buf) == MKTAG('S', 'A', 'N', 'M') ||
- AV_RL32(p->buf) == MKTAG('A', 'N', 'I', 'M'))) {
+ if (((AV_RL32(p->buf) == MKTAG('S', 'A', 'N', 'M') &&
+ AV_RL32(p->buf + 8) == MKTAG('S', 'H', 'D', 'R')) ||
+ (AV_RL32(p->buf) == MKTAG('A', 'N', 'I', 'M') &&
+ AV_RL32(p->buf + 8) == MKTAG('A', 'H', 'D', 'R')))) {
return AVPROBE_SCORE_MAX;
}