#396: libavdevice/vfwcvap.c memory allocation error
------------------------+--------------------------
Reporter: RickWinkpa | Type: defect
Status: new | Priority: important
Component: avdevice | Version: unspecified
Keywords: vfwcap | Blocked By:
Blocking: | Reproduced: 1
Analyzed: 0 |
------------------------+--------------------------
vfw_read_header()
line 358 a structure memory area is freed
av_free(bi);
a few lines later, lines: 384 & 385 the freed memory are is used.
codec->width = bi->bmiHeader.biWidth;
codec->height = bi->bmiHeader.biHeight;
by debugging it, i have found the memory is already been used and
corrupted. This causes erratic behavior with ffmpeg.exe
I tried the obvious corrections by copying the height and width values
from the memory (bi) values before the free, and then used the copied
values to set the codec values. This causes a hang in av_read_packet()
in ffmpeg.exe and an abort when debugged using eclipse.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/396>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
#425: cannot compile ffmpeg.c when disable avfilter
-------------------------+---------------------
Reporter: qrtt1 | Owner: michael
Type: defect | Status: new
Priority: normal | Component: FFmpeg
Version: git-master | Keywords:
Blocked By: | Blocking:
Reproduced: 0 | Analyzed: 0
-------------------------+---------------------
I try to compile the latest source code from git master by
{{{
./configure --disable-doc --disable-ffplay \
--disable-ffserver --disable-muxers --disable-avdevice \
--disable-postproc --disable-avfilter --disable-bsfs \
--disable-filters --disable-devices \
--disable-encoders --disable-asm \
--disable-bzlib \
--disable-zlib \
--prefix=/opt/ffmpeg
}}}
when ffmpeg.c compiling, it raises the error:
{{{
CC ffmpeg.o
ffmpeg.c: In function ‘do_video_resample’:
ffmpeg.c:1099: error: ‘enc’ undeclared (first use in this function)
ffmpeg.c:1099: error: (Each undeclared identifier is reported only once
ffmpeg.c:1099: error: for each function it appears in.)
ffmpeg.c:1126: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
ffmpeg.c: In function ‘init_input_stream’:
ffmpeg.c:1886: warning: unused variable ‘i’
ffmpeg.c: In function ‘transcode’:
ffmpeg.c:2336: error: ‘OutputStream’ has no member named ‘graph’
ffmpeg.c:2338: warning: implicit declaration of function
‘avfilter_graph_send_command’
ffmpeg.c:2338: error: ‘OutputStream’ has no member named ‘graph’
ffmpeg.c:2341: warning: implicit declaration of function
‘avfilter_graph_queue_command’
ffmpeg.c:2341: error: ‘OutputStream’ has no member named ‘graph’
ffmpeg.c: In function ‘opt_input_file’:
ffmpeg.c:3166: warning: ‘loop_input’ is deprecated (declared at
libavformat/avformat.h:795)
ffmpeg.c: In function ‘opt_output_file’:
ffmpeg.c:3789: warning: ‘loop_output’ is deprecated (declared at
libavformat/avformat.h:771)
make: *** [ffmpeg.o] Error 1
}}}
the revision is 3584b01e4e63cd9d05b82dee4859da5d463fb8e2
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/425>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker