Opened 8 years ago

Closed 8 years ago

#5805 closed defect (fixed)

Erroreous rendering of certain JPEG files

Reported by: rr- Owned by: Carl Eugen Hoyos
Priority: normal Component: avcodec
Version: git-master Keywords: mjpeg
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
FFmpeg doesn't draw the image correctly, whereas Firefox displays the image as expected.

How to reproduce:

ffplay 20242.jpg

ffplay version 3.1.3 Copyright (c) 2003-2016 the FFmpeg developers
  built with gcc 6.1.1 (GCC) 20160802
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[mjpeg @ 0x7ff1f0002440] mjpeg: error, decode_app parser read over the end
Input #0, image2, from '20242.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 21662 kb/s
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 807x538 [SAR 72:72 DAR 3:2], 25 tbr, 25 tbn, 25 tbc
[mjpeg @ 0x7ff1f0002ac0] mjpeg: error, decode_app parser read over the end
[swscaler @ 0x7ff1e80caf20] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7ff1e80e2c80] deprecated pixel format used, make sure you did set range correctly
   0.61 M-V: -0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   

Attachments (1)

20242.jpg (105.8 KB ) - added by rr- 8 years ago.
Input file

Download all attachments as: .zip

Change History (5)

by rr-, 8 years ago

Attachment: 20242.jpg added

Input file

comment:1 by rr-, 8 years ago

ImageMagick handles the file correctly too.

comment:2 by rr-, 8 years ago

Out of 42963 images downloaded from the Internet, 24 of them exhibit the problem, making up for ~0.06% of test population. Please let me know if more attachments are needed. All of them are correctly decoded by both Firefox and ImageMagick.

comment:3 by Carl Eugen Hoyos, 8 years ago

Component: avformatavcodec
Keywords: mjpeg added
Owner: set to Carl Eugen Hoyos
Priority: importantnormal
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Please do not attach output files unless asked to do so, they often lead to confusion.

comment:4 by Carl Eugen Hoyos, 8 years ago

Resolution: fixed
Status: openclosed

Fixed in e82b181f8096d20a163b054b8117838437d6b694
Thank you for the sample!

Note: See TracTickets for help on using tickets.