Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#267 closed defect (fixed)

jpeg image decodes incorrectly

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

Description

more info:

http://trac.videolan.org/vlc/ticket/4215

the file decodes correctly with firefox/irfanview

https://trac.videolan.org/vlc/attachment/ticket/4215/frame.jpg

C:\>ffmpeg -i frame.jpg out.bmp
ffmpeg version git-N-30344-g5501afa, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on May 27 2011 22:37:57 with gcc 4.5.3
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi
g
  libavutil    51.  2. 2 / 51.  2. 2
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2. 11. 0 /  2. 11. 0
  libswscale    0. 14. 0 /  0. 14. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mjpeg @ 023507A0] mjpeg_decode_dc: bad vlc: 0:0 (01DC6900)
[mjpeg @ 023507A0] error dc
[mjpeg @ 023507A0] error y=1 x=21
Input #0, image2, from 'frame.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj422p, 1280x720, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'yuvj422p' for codec 'bmp', auto-selecting format 'bgr
24'
[buffer @ 01DD1E40] w:1280 h:720 pixfmt:yuvj422p tb:1/1000000 sar:0/1 sws_param:

[ffsink @ 01DD1380] auto-inserting filter 'auto-inserted scaler 0' between the f
ilter 'src' and the filter 'out'
[scale @ 01DD2140] w:1280 h:720 fmt:yuvj422p -> w:1280 h:720 fmt:bgr24 flags:0x4

[swscaler @ 02388020] No accelerated colorspace conversion found from yuv422p to
 bgr24.
[swscaler @ 02397260] No accelerated colorspace conversion found from yuv422p to
 bgr24.
[swscaler @ 023A6480] No accelerated colorspace conversion found from yuv422p to
 bgr24.
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf53.2.0
    Stream #0.0: Video: bmp, bgr24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
[mjpeg @ 023507A0] mjpeg_decode_dc: bad vlc: 0:0 (01DC5200)
[mjpeg @ 023507A0] error dc
[mjpeg @ 023507A0] error y=1 x=21
frame=    1 fps=  0 q=0.0 Lsize=      -0kB time=0.04 bitrate=  -4.4kbits/s
video:2700kB audio:0kB global headers:0kB muxing overhead -100.000796%

Attachments (1)

frame.jpg (95.2 KB ) - added by Carl Eugen Hoyos 12 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Carl Eugen Hoyos, 14 years ago

Component: undeterminedavcodec
Keywords: jpg added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed

comment:3 by Carl Eugen Hoyos, 13 years ago

Keywords: mjpeg added; jpg removed

by Carl Eugen Hoyos, 12 years ago

Attachment: frame.jpg added
Note: See TracTickets for help on using tickets.