Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 644838

Summary: media-video/mplayer-1.3.0-r3 crashes on VFCTRL_SCREENSHOT
Product: Gentoo Linux Reporter: Vasiliy <6vasia>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED OBSOLETE    
Severity: normal CC: admin, jstein, nikita.kipriyanov, quiteface
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vasiliy 2018-01-17 10:06:22 UTC
media-video/mplayer-1.3.0-r3 with media-video/ffmpeg-3.3.5 segfaults after pressing S (screenshot).

cmdline: mplayer -vf screenshot <file>

debug:
[png @ 0x7ffff39cd100]The encoder timebase is not set.
Could not open libavcodec PNG encoder
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12 
A:   1.0 V:   1.0 A-V: -0.000 ct:  0.041   0/  0 64%  3%  1.1% 0 0 
sending VFCTRL_SCREENSHOT!

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff302eb69 in avcodec_encode_video2 (avctx=0x5555562e7620, 
    avpkt=avpkt@entry=0x7fffffffc9b0, frame=0x555555a89300, 
    got_packet_ptr=got_packet_ptr@entry=0x7fffffffc9ac)
    at src/libavcodec/utils.c:1979

bt:
#0  0x00007ffff302eb69 in avcodec_encode_video2 (avctx=0x5555562e7620, avpkt=avpkt@entry=0x7fffffffc9b0, frame=0x555555a89300, 
    got_packet_ptr=got_packet_ptr@entry=0x7fffffffc9ac) at src/libavcodec/utils.c:1979
        ret = <optimized out>
        user_pkt = {buf = 0x0, pts = <optimized out>, dts = <optimized out>, data = 0x7fffe8cdb040 "", size = <optimized out>, 
          stream_index = <optimized out>, flags = <optimized out>, side_data = <optimized out>, side_data_elems = <optimized out>, 
          duration = <optimized out>, pos = <optimized out>, convergence_duration = <optimized out>}
        needs_realloc = 0
#1  0x00005555556b7d62 in write_png (priv=<optimized out>) at libmpcodecs/vf_screenshot.c:116
        fname = 0x555555a882b4 "shot0009.png"
        fp = <optimized out>
        pkt = {buf = 0x0, pts = -9223372036854775808, dts = -9223372036854775808, data = 0x7fffe8cdb040 "", size = 5875232, stream_index = 0, 
          flags = 0, side_data = 0x0, side_data_elems = 0, duration = 0, pos = -1, convergence_duration = 0}
        res = <optimized out>
        got_pkt = 0
#2  put_image (vf=0x555555a7b260, mpi=<optimized out>, pts=<optimized out>) at libmpcodecs/vf_screenshot.c:220
        dmpi = 0x5555564c5300
#3  0x0000555555601d52 in filter_video (sh_video=<optimized out>, frame=0x5555564c5260, pts=1.04) at libmpcodecs/dec_video.c:486
        mpi = 0x5555564c5260
        t2 = 4107725410
        vf = 0x555555a7b260
        ret = <optimized out>
#4  0x00005555555ac1f7 in generate_video_frame (d_video=0x555555a774b0, sh_video=0x555556254c30) at mplayer.c:1820
        drop_frame = 0
        decoded_frame = 0x5555564c5260
        start = 0x555555b2ae70 ""
        in_size = 17980
        hit_eof = 0
        pts = 1.04
#5  update_video (blit_frame=0x7fffffffcb60) at mplayer.c:2529
        sh_video = 0x555556254c30
        frame_time = <optimized out>
#6  0x000055555559f387 in main (argc=4, argv=0x7fffffffdc98) at mplayer.c:3818
        frame_time = <optimized out>
        frame_time_remaining = 0
        blit_frame = 0
        skip_timing = 0
        aq_sleep_time = 0
        opt_exit = <optimized out>
        profile_config_loaded = <optimized out>
        i = <optimized out>
Comment 2 Nikita S. Kipriyanov 2018-06-23 07:30:14 UTC
Still applies to 1.3.0-r5.

Arch and Debian already fixed this more than year ago.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-24 10:16:11 UTC
*** Bug 668884 has been marked as a duplicate of this bug. ***
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-24 10:16:42 UTC
1.4 is fine.