Opened 4 years ago

Closed 4 years ago

#1220 closed defect (fixed)

camstudio: broken output with 16bpp and odd width

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

Description

decodes correctly with original codec

(no problem with 24/32bpp modes)

C:\>ffmpeg -i 1023_gzip_16bpp.avi out.bmp
ffmpeg version N-39494-g41a097a Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr  3 2012 20:20:04 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 66.101 /  2. 66.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from '1023_gzip_16bpp.avi':

  Duration: 00:00:00.10, start: 0.000000, bitrate: 47047 kb/s
    Stream #0:0: Video: camstudio (CSCD / 0x44435343), rgb555le, 1023x768, 10 tb
r, 10 tbn, 10 tbc
[buffer @ 02191DE0] w:1023 h:768 pixfmt:rgb555le tb:1/1000000 sar:0/1 sws_param:
flags=2
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf54.3.100
    Stream #0:0: Video: bmp, rgb555le, 1023x768, q=2-31, 200 kb/s, 90k tbn, 10 t
bc
Stream mapping:
  Stream #0:0 -> #0:0 (camstudio -> bmp)
Press [q] to stop, [?] for help
[camstudio @ 02182320] error during zlib decompression
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.10 bitrate=   0.0kbits/
s
video:1536kB audio:0kB global headers:0kB muxing overhead -100.000000%

Attachments (2)

1023_gzip_16bpp.avi (574.3 KB) - added by ami_stuff 4 years ago.
1023_gzip_24bpp.avi (1.8 MB) - added by ami_stuff 4 years ago.

Change History (6)

Changed 4 years ago by ami_stuff

Changed 4 years ago by ami_stuff

comment:1 Changed 4 years ago by cehoyos

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

Patch on mailing list.

comment:2 Changed 4 years ago by cehoyos

Could you test width 1022?

comment:3 Changed 4 years ago by ami_stuff

Your patch works correctly with 1022 and some random even/odd widths.

comment:4 Changed 4 years ago by cehoyos

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

Different patch applied, should be fixed.

Note: See TracTickets for help on using tickets.