Opened 9 years ago

Closed 8 years ago

#4651 closed defect (wontfix)

bmp: some RLE errors

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

Description

no idea if this is a bug in ffmpeg or in encoding app

C:\>ffmpeg -i 4bpp.bmp out.bmp
ffmpeg version N-73036-g631d56f Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.0-1.fc14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --
enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -lw
inmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapsh
ots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/sna
pshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --
enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-li
bvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-li
bopencore-amrwb --enable-libmp3lame --enable-libfreetype --enable-libvpx --disab
le-decoder=libvpx
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 42.100 / 56. 42.100
  libavformat    56. 37.100 / 56. 37.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 17.100 /  5. 17.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[bmp @ 0x298f820] MS RLE: ended frame decode with 2 bytes left over
Input #0, bmp_pipe, from '4bpp.bmp':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: bmp, pal8, 999x749, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf56.37.100
    Stream #0:0: Video: bmp, pal8, 999x749, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25
 tbc
    Metadata:
      encoder         : Lavc56.42.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> bmp (native))
Press [q] to stop, [?] for help
[bmp @ 0x2990920] MS RLE: ended frame decode with 2 bytes left over
frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:732kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: unknown

Attachments (4)

4bpp.bmp (591.3 KB ) - added by ami_stuff 9 years ago.
8bpp.bmp (821.1 KB ) - added by ami_stuff 9 years ago.
lead_4bpp_rle.bmp (404.9 KB ) - added by ami_stuff 9 years ago.
lead_4bpp_raw.bmp (365.8 KB ) - added by ami_stuff 9 years ago.

Change History (8)

by ami_stuff, 9 years ago

Attachment: 4bpp.bmp added

by ami_stuff, 9 years ago

Attachment: 8bpp.bmp added

comment:1 by Elon Musk, 9 years ago

Decoded output differs from ImageMagick.

comment:2 by Carl Eugen Hoyos, 9 years ago

Component: undeterminedavcodec
Keywords: bmp added
Priority: normalminor
Status: newopen
Version: unspecifiedgit-master

I suspect there is no bug in FFmpeg...

comment:3 by ami_stuff, 9 years ago

another sample

C:\>ffmpeg -i lead_4bpp_rle.bmp out.bmp
ffmpeg version N-73189-g7728d23 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 45.100 / 56. 45.100
  libavformat    56. 38.102 / 56. 38.102
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 18.100 /  5. 18.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[bmp @ 034c1760] MS RLE: frame/stream ptr just went out of bounds (copy)
Input #0, bmp_pipe, from 'lead_4bpp_rle.bmp':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: bmp, pal8, 999x749, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf56.38.102
    Stream #0:0: Video: bmp, pal8, 999x749, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25
 tbc
    Metadata:
      encoder         : Lavc56.45.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> bmp (native))
Press [q] to stop, [?] for help
[bmp @ 035907e0] MS RLE: frame/stream ptr just went out of bounds (copy)
frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:732kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: unknown

by ami_stuff, 9 years ago

Attachment: lead_4bpp_rle.bmp added

by ami_stuff, 9 years ago

Attachment: lead_4bpp_raw.bmp added

comment:4 by Elon Musk, 8 years ago

Resolution: wontfix
Status: openclosed
Note: See TracTickets for help on using tickets.