Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#154 closed defect (fixed)

pbm file does not convert

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: pbm
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

pbm file does not convert

C:\>ffmpeg.exe -i battrace.pbm out.tif
FFmpeg version git-N-29181-ga304071, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on Apr 18 2011 21:24:03 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-memalign-hack --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 --cross-prefix=i686-w6
4-mingw32- --target-os=mingw32 --arch=x86_32 --extra-cflags=-I/home/kyle/softwar
e/ffmpeg/external-libraries/win32/include --extra-ldflags=-L/home/kyle/software/
ffmpeg/external-libraries/win32/lib --pkg-config=pkg-config
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.120. 0 / 52.120. 0
  libavformat  52.108. 0 / 52.108. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 79. 0 /  1. 79. 0
  libswscale    0. 13. 0 /  0. 13. 0
Input #0, image2, from 'battrace.pbm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: pbm, monow, 320x400, 25 tbr, 25 tbn, 25 tbc
[buffer @ 01CF14E0] w:320 h:400 pixfmt:monow
Output #0, image2, to 'out.tif':
  Metadata:
    encoder         : Lavf52.108.0
    Stream #0.0: Video: tiff, monow, 320x400, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
Error while decoding stream #0.0
frame=    0 fps=  0 q=-1.0 Lsize=      -0kB time=10000000000.00 bitrate=  -0.0kb
its/s
video:0kB audio:0kB global headers:0kB muxing overhead -1.#INF00%

Attachments (1)

battrace.pbm (126.9 KB ) - added by ami_stuff 13 years ago.

Download all attachments as: .zip

Change History (3)

by ami_stuff, 13 years ago

Attachment: battrace.pbm added

comment:1 by Stefano Sabatini, 13 years ago

Analyzed by developer: set
Component: undeterminedavcodec
Reproduced by developer: set
Resolution: fixed
Status: newclosed

Fixed in commit:

commit 4a745b41770893116405c22f832192510f9bcc9b
Author: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Date: Sun May 8 00:47:14 2011 +0200

pnmdec: add support for mono images with non-space-separated pixel digits


When the file to decode contains a sequence of binary values like
"1101110...", decode_frame() was reading the sequence of digits like a
unique integer value, which was resulting in integer overflows.


The change add support for parsing non-space-separated pixel digits
for mono formats, in particular fix decoding of file battrace.pbm, and
fix trac issue #154.

comment:2 by Carl Eugen Hoyos, 12 years ago

Keywords: pbm added
Note: See TracTickets for help on using tickets.