Opened 15 years ago

Closed 15 years ago

#1390 closed defect (fixed)

crash when switch_ratio is used on audio only file

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

Description

put
a switch_ratio 2.333 in input.conf
mplayer somefile.mp3 and hit a while playing

#0 run_command (mpctx=0xf54b00, cmd=0x13ba110) at command.c:2470

sh_audio = (sh_audio_t * const) 0x13934d0
sh_video = (sh_video_t * const) 0x0

Change History (2)

comment:1 by compn, 15 years ago

patch by ShadowJK:

Index: command.c
===================================================================
--- command.c (revision 28348)
+++ command.c (working copy)
@@ -2463,6 +2463,7 @@

break;


case MP_CMD_SWITCH_RATIO:

+ if(!sh_video) break;

if (cmd->nargs == 0
cmd->args[0].v.f == -1)

movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;

else

comment:2 by compn, 15 years ago

Resolution: fixed
Status: newclosed

fixed in 28403

Note: See TracTickets for help on using tickets.