Opened 12 years ago

Closed 12 years ago

#817 closed defect (fixed)

tiff enc: black/white bar with monob/monow and odd width

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

Description

https://ffmpeg.org/trac/ffmpeg/attachment/ticket/816/Test.BMP

C:\>ffmpeg -i test.bmp -pix_fmt monow -s 111x113 iiii2.tif
ffmpeg version N-35966-g1d0ae92, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 19 2011 13:01:15 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. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 1 / 53. 46. 1
  libavformat  53. 27. 0 / 53. 27. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, image2, from 'test.bmp':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: bmp, bgr24, 1024x768, 25 tbr, 25 tbn, 25 tbc
[buffer @ 020E1520] w:1024 h:768 pixfmt:bgr24 tb:1/1000000 sar:0/1 sws_param:
[scale @ 020E1960] w:1024 h:768 fmt:bgr24 -> w:111 h:113 fmt:monow flags:0x4
Output #0, image2, to 'iiii2.tif':
  Metadata:
    encoder         : Lavf53.27.0
    Stream #0:0: Video: tiff, monow, 111x113, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (bmp -> tiff)
Press [q] to stop, [?] for help
frame=    1 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/
s
video:1kB audio:0kB global headers:0kB muxing overhead -100.000000%

Change History (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedswscale
Keywords: monob monow added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

I suspect this is a swscale issue.

comment:2 by ami_stuff, 12 years ago

Resolution: fixed
Status: openclosed

Fixed in bc0bdda77b8df4c963dde55793dcecb65232c21a.

swscale: handle complete dimensions for monoblack/white.

Note: See TracTickets for help on using tickets.