diff options
author | Peter Ross <pross@xvid.org> | 2012-11-30 10:42:15 +1100 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2012-12-11 20:17:30 +1100 |
commit | 53ae32d33109d691bad7a04f527e6d5d55ce4b91 (patch) | |
tree | 290680efd34ec75f623f12ae641ca9a0e0863e3b | |
parent | 67c1b5b0269d3d5a505dba0db6f985ca2990f2aa (diff) | |
download | ffmpeg-53ae32d33109d691bad7a04f527e6d5d55ce4b91.tar.gz |
iff demuxer: support RGB8 and RGBN
-rw-r--r-- | libavformat/iff.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/iff.c b/libavformat/iff.c index 6375ef5bdb..0e945da7a3 100644 --- a/libavformat/iff.c +++ b/libavformat/iff.c @@ -53,6 +53,8 @@ #define ID_CMAP MKTAG('C','M','A','P') #define ID_ACBM MKTAG('A','C','B','M') #define ID_DEEP MKTAG('D','E','E','P') +#define ID_RGB8 MKTAG('R','G','B','8') +#define ID_RGBN MKTAG('R','G','B','N') #define ID_FORM MKTAG('F','O','R','M') #define ID_ANNO MKTAG('A','N','N','O') @@ -136,7 +138,9 @@ static int iff_probe(AVProbeData *p) AV_RL32(d+8) == ID_PBM || AV_RL32(d+8) == ID_ACBM || AV_RL32(d+8) == ID_DEEP || - AV_RL32(d+8) == ID_ILBM) ) + AV_RL32(d+8) == ID_ILBM || + AV_RL32(d+8) == ID_RGB8 || + AV_RL32(d+8) == ID_RGBN) ) return AVPROBE_SCORE_MAX; return 0; } |