[FFmpeg-trac] #5565(avformat:new): Reading some tiff images fails with "max resync size reached, could not find sync byte" error

FFmpeg trac at avcodec.org
Tue May 17 12:13:55 CEST 2016


#5565: Reading some tiff images fails with "max resync size reached, could not
find sync byte" error
----------------------------------+--------------------------------------
             Reporter:  Arnaud    |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  git-master
             Keywords:  tiff      |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:
 How to reproduce:
 {{{
 % ffprobe bug_tiff.tif

 ffprobe version N-80012-g95b20ad Copyright (c) 2007-2016 the FFmpeg
 developers
   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
   configuration: --enable-shared --disable-static --enable-zlib --enable-
 memalign-hack --disable-optimizations --disable-mmx --disable-stripping
 --extra-cflags=-g --extra-ldflags=-g --disable-encoder=jpeg2000 --disable-
 decoder=jpeg2000 --disable-doc
   libavutil      55. 24.100 / 55. 24.100
   libavcodec     57. 42.100 / 57. 42.100
   libavformat    57. 36.100 / 57. 36.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 45.100 /  6. 45.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  0.101 /  2.  0.101
 [mpegts @ 0x806aa30] max resync size reached, could not find sync byte
     Last message repeated 25 times

 Latest git: ffprobe version N-80012-g95b20ad Copyright (c) 2007-2016 the
 FFmpeg developers
 }}}

 I was able to reproduce the problem with ffmpeg versions up to 2.5.

 Doesn't work with ffmpeg -i either.

 I'm not sure why ffmpeg needs to go through mpegts.c and more particularly
 mpegts_resync function: since this is a simple image file, I believe there
 should be no need to sync anything.

 I think the image is correct though since I can open it with other
 software (GIMP, etc.) without any error.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5565>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list