Opened 12 years ago

Closed 12 years ago

#1631 closed defect (fixed)

paf_video crash

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

Description

sorry too old dubug-build - please add output.

http://samples.mplayerhq.hu/V-codecs/I263/i263.avi

C:\>ffmpeg -vcodec paf_video -i i263.avi -an -f null -

ffmpeg version N-43410-ga0d1502 Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug 10 2012 02:39:29 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-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snap
shots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/s
napshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 67.100 / 51. 67.100
  libavcodec     54. 51.100 / 54. 51.100
  libavformat    54. 22.104 / 54. 22.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  7.100 /  3.  7.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from 'i263.avi':
  Duration: 00:00:06.67, start: 0.000000, bitrate: 407 kb/s
    Stream #0:0: Video: paf_video (I263 / 0x33363249), pal8, 352x240, 29.97 tbr,
 29.97 tbn, 29.97 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 22050 Hz, mono, s16, 32 kb/s
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.22.104
    Stream #0:0: Video: rawvideo, pal8, 352x240, q=2-31, 200 kb/s, 90k tbn, 29.9
7 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (paf_video -> rawvideo)
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 199 times
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=   0.0kbits/
s
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters i
f used)

Change History (3)

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: paf_video added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
$ valgrind ffmpeg_g -vcodec paf_video -i i263.avi -an -f null -
==19521== Memcheck, a memory error detector
==19521== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==19521== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==19521== Command: ffmpeg_g -vcodec paf_video -i i263.avi -an -f null -
==19521==
ffmpeg version N-43451-g48d20b9 Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug 11 2012 14:43:15 with gcc 4.6.1 (GCC)
  configuration: --cc='/usr/local/gcc-4.6.1/bin/gcc -m32' --disable-optimizations
  libavutil      51. 67.100 / 51. 67.100
  libavcodec     54. 51.100 / 54. 51.100
  libavformat    54. 23.100 / 54. 23.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  7.100 /  3.  7.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
Input #0, avi, from 'i263.avi':
  Duration: 00:00:06.67, start: 0.000000, bitrate: 407 kb/s
    Stream #0:0: Video: paf_video (I263 / 0x33363249), pal8, 352x240, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 22050 Hz, mono, s16, 32 kb/s
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.23.100
    Stream #0:0: Video: rawvideo, pal8, 352x240, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (paf_video -> rawvideo)
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Invalid data found when processing input
==19521== Invalid write of size 4
==19521==    at 0x84AFB63: copy_block4 (dsputil.h:695)
==19521==    by 0x84B02E0: decode_0 (paf.c:176)
==19521==    by 0x84B0D28: paf_vid_decode (paf.c:299)
==19521==    by 0x856836B: avcodec_decode_video2 (utils.c:1509)
==19521==    by 0x805B33A: decode_video (ffmpeg.c:1549)
==19521==    by 0x805C04A: output_packet (ffmpeg.c:1734)
==19521==    by 0x8060554: process_input (ffmpeg.c:2858)
==19521==    by 0x80606D6: transcode (ffmpeg.c:2916)
==19521==    by 0x8060C38: main (ffmpeg.c:3098)
==19521==  Address 0x520c240 is 0 bytes after a block of size 90,112 alloc'd
==19521==    at 0x4CA8E9E: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==19521==    by 0x4CA8EFB: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==19521==    by 0x87F2830: av_malloc (mem.c:95)
==19521==    by 0x87F294A: av_mallocz (mem.c:199)
==19521==    by 0x84AFC40: paf_vid_init (paf.c:76)
==19521==    by 0x8566A8F: avcodec_open2 (utils.c:961)
==19521==    by 0x805C7FA: init_input_stream (ffmpeg.c:1851)
==19521==    by 0x805E148: transcode_init (ffmpeg.c:2255)
==19521==    by 0x8060628: transcode (ffmpeg.c:2887)
==19521==    by 0x8060C38: main (ffmpeg.c:3098)
==19521==
    Last message repeated 199 times
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=   0.0kbits/s
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
==19521==
==19521== HEAP SUMMARY:
==19521==     in use at exit: 0 bytes in 0 blocks
==19521==   total heap usage: 1,773 allocs, 1,773 frees, 2,497,201 bytes allocated
==19521==
==19521== All heap blocks were freed -- no leaks are possible
==19521==
==19521== For counts of detected and suppressed errors, rerun with: -v
==19521== ERROR SUMMARY: 1600 errors from 1 contexts (suppressed: 3 from 3)

comment:3 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

Fixed by Paul B Mahol.

Note: See TracTickets for help on using tickets.