[MPlayer-dev-eng] [BUG] vd_ffmpeg: release_buffer
Alex Beregszaszi
alex at fsn.hu
Fri Apr 25 22:20:17 CEST 2003
Hi,
I'm just trying to clean vo_dga.c a bit up, and started mplayer with the
following options:-vo dga -vop format=rgb24 (okay-okay, it only allows
BGR & YV12, i know :)
The result:
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
DR1 failure
FATAL: Could not initialize video filters (-vop) or video output (-vo).
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11723)]
release_buffer (avctx=0x8456d20, pic=0x8456ff8) at vd_ffmpeg.c:488
488 if(mpi->flags&MP_IMGFLAG_PRESERVE)
(gdb) bt
#0 release_buffer (avctx=0x8456d20, pic=0x8456ff8) at vd_ffmpeg.c:488
#1 0x0819fedf in free_picture (s=0x8456f40, pic=0x8456ff8) at
mpegvideo.c:293
#2 0x081a09da in MPV_common_end (s=0x8456f40) at
mpegvideo.c:518
#3 0x0826abb4 in ff_h263_decode_end (avctx=0x8456d20) at
h263dec.c:121
#4 0x0819e870 in avcodec_close (avctx=0x8456d20) at
utils.c:384
#5 0x080d3635 in uninit (sh=0x843af88) at vd_ffmpeg.c:284
#6 0x080ca796 in uninit_video (sh_video=0x843af88) at dec_video.c:138
#7 0x0806d027 in uninit_player (mask=65403) at mplayer.c:368
#8 0x08073f33 in main (argc=6, argv=0xbffffb64) at mplayer.c:3441
(gdb) print mpi
$1 = (mp_image_t *) 0x0
Note that at the stage of calling release_buffer in the end (which is a
callback, and is defined in vd_ffmpeg.c) the mpi structure already gets
unallocated somewhere.
Some info:
VIDEO: [DIV3] 352x240 24bpp 29.97 fps 1047.5 kbps (127.9 kbyte/s)
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4
v3))
Attached a workaround, dunno how to fix, and dunno if it can be a real
issue, but i think it CAN.
--
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: workaround.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030425/fd88a958/attachment.txt>
More information about the MPlayer-dev-eng
mailing list