Opened 3 years ago

Closed 3 years ago

#5267 closed defect (fixed)

mjpeg decode error

Reported by: pszemus Owned by:
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 produces incorrect (grey) image.
How to reproduce:

$ ffmpeg -i http://m.fotoblogia.pl/9cb812a9c09d2e9f9aba34f1c0a8cc76.jpg /tmp/tmp.jpg
ffmpeg version N-78646-g10fa50c Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/home/pszemus/ffmpeg/build --enable-pic --enable-pthreads --enable-libmp3lame --enable-version3 --enable-libfaac --enable-gpl --enable-nonfree --enable-libvpx --enable-libvorbis --enable-libopus --enable-libx264 --enable-libwebp --enable-protocol=https --enable-openssl --extra-cflags=-I/opt/WP/common.libs/include --extra-ldflags='-L/opt/WP/common.libs/lib -ldl'
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 24.106 / 57. 24.106
  libavformat    57. 26.100 / 57. 26.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 35.100 /  6. 35.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mjpeg @ 0x25cbfa0] mjpeg: error, decode_app parser read over the end
[mjpeg @ 0x25cbfa0] Changing bps to 8
Input #0, image2, from 'http://m.fotoblogia.pl/9cb812a9c09d2e9f9aba34f1c0a8cc76.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 59801 kb/s
    Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1920x1280, 25 tbr, 25 tbn, 25 tbc
File '/tmp/tmp.jpg' already exists. Overwrite ? [y/N] y
Output #0, image2, to '/tmp/tmp.jpg':
  Metadata:
    encoder         : Lavf57.26.100
    Stream #0:0: Video: mjpeg, yuvj444p(pc), 1920x1280, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.24.106 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[mjpeg @ 0x25cc820] mjpeg: error, decode_app parser read over the end
frame=    1 fps=0.0 q=2.3 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.849x    
video:66kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Attachments (1)

9cb812a9c09d2e9f9aba34f1c0a8cc76.jpg (292.0 KB) - added by cehoyos 3 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 3 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords mjpeg added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

Changed 3 years ago by cehoyos

comment:2 Changed 3 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Fixed in 0f31d401c35c6d39462c2b3e2aa7b573db0ccfde - thank you for the sample!

Note: See TracTickets for help on using tickets.