Opened 8 years ago

#1892 new defect

High memory need on eof when playing mpeg with -demuxer lavf -sid 0

Reported by: cehoyos Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

samples.mplayerhq.hu/archive/all/mpeg+mpeg2video+ac3+dvdsub+sequence-display-aspect.mpg makes mplayer consume all memory on EOF for me when using -demuxer lavf -sid 0, not reproducible with valgrind, crashes so badly with -nosound that I can not offer output etc.

(Ctrl-C after nearly all memory was allocated by mplayer)
(gdb) r mpeg+mpeg2video+ac3+dvdsub+sequence-display-aspect.mpg -demuxer lavf -sid 0
Starting program: mplayer mpeg+mpeg2video+ac3+dvdsub+sequence-display-aspect.mpg -demuxer lavf -sid 0
[Thread debugging using libthread_db enabled]
MPlayer SVN-r33113-4.5.2 (C) 2000-2011 MPlayer Team

Playing mpeg+mpeg2video+ac3+dvdsub+sequence-display-aspect.mpg.
libavformat file format detected.
[mpeg @ 0x8e77bf0] max_analyze_duration reached
[lavf] stream 0: subtitle (dvdsub), -sid 0
[lavf] stream 1: video (mpeg2video), -vid 0
[lavf] stream 2: audio (ac3), -aid 0
VIDEO: [MPG2] 720x480 0bpp 29.970 fps 9100.0 kbps (1110.8 kbyte/s)
Load subtitles in /home/cehoyos/issues/issue621/
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x480 => 854x480 Planar YV12
[mpeg2video @ 0x87e6600]warning: first frame is no keyframe
[VD_FFMPEG] DRI failure.
Detaching after fork from child process 7343.
A: 0.2 V: 0.1 A-V: 0.057 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
[mpeg2video @ 0x87e6600]warning: first frame is no keyframe
A: 10.4 V: 10.4 A-V: 0.000 ct: -0.024 0/ 0 7% 3% 0.6% 0 0
Program received signal SIGINT, Interrupt.
0xf749ab56 in memcpy () from /lib/libc.so.6
(gdb) bt
#0 0xf749ab56 in memcpy () from /lib/libc.so.6
#1 0x08e77bf0 in ?? ()
#2 0x0830b90e in av_read_frame (s=0x8e77bf0, pkt=0xffffabd4) at utils.c:1267
#3 0x081eb396 in demux_lavf_fill_buffer (demux=0x8e6e200, dsds=0x8e6ee70) at libmpdemux/demux_lavf.c:597
#4 0x0814edd7 in demux_fill_buffer (ds=0x8e6ee70, demux=0x8e6e200) at libmpdemux/demuxer.c:619
#5 ds_fill_buffer (ds=0x8e6ee70, demux=0x8e6e200) at libmpdemux/demuxer.c:701
#6 0x0814faa0 in ds_get_packet (ds=0x8e6ee70, start=0xffffad5c) at libmpdemux/demuxer.c:817
#7 0x0814fae9 in ds_get_packet_pts (ds=0x8e6ee70, start=0xffffad5c, pts=0xffffad48)

at libmpdemux/demuxer.c:833

#8 0x081e5917 in decode_audio (sh_audio=0x8e79158, buf=0x9170f00 <incomplete sequence \354>,

minlen=5120, maxlen=256256) at libmpcodecs/ad_ffmpeg.c:209

#9 0x081143b9 in filter_n_bytes (len=6400, sh=0x8e79158) at libmpcodecs/dec_audio.c:392
#10 mp_decode_audio (len=6400, sh=0x8e79158) at libmpcodecs/dec_audio.c:474
#11 0x080a12dc in fill_audio_out_buffers () at mplayer.c:2122
#12 main () at mplayer.c:3678

Change History (0)

Note: See TracTickets for help on using tickets.