[FFmpeg-cvslog] Autodetect big-endian tiff files.

Clément Bœsch u at pkh.me
Wed Jul 23 08:16:27 CEST 2014


On Tue, Jul 22, 2014 at 06:52:19PM +0200, Carl Eugen Hoyos wrote:
> ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Jul 22 17:15:20 2014 +0200| [050d79b6ddaf2c675ae89b77e5f9e82dcb3fba58] | committer: Carl Eugen Hoyos
> 
> Autodetect big-endian tiff files.
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=050d79b6ddaf2c675ae89b77e5f9e82dcb3fba58
> ---
> 
>  libavformat/img2dec.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
> index f978007..cf51c0b 100644
> --- a/libavformat/img2dec.c
> +++ b/libavformat/img2dec.c
> @@ -652,7 +652,8 @@ static int tiff_probe(AVProbeData *p)
>  {
>      const uint8_t *b = p->buf;
>  
> -    if (AV_RB32(b) == 0x49492a00)
> +    if (AV_RB32(b) == 0x49492a00 ||
> +        AV_RB32(b) == 0x4D4D002a)

does this weird case mix have a particular signification?

>          return AVPROBE_SCORE_EXTENSION + 1;
>      return 0;

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20140723/3207ca81/attachment.asc>


More information about the ffmpeg-cvslog mailing list