summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-08-10 23:26:48 +0300
committerUoti Urpala <uau@mplayer2.org>2011-08-10 23:26:48 +0300
commit1cb179855ea4911bc3f4a71bcc8343b26aa367e6 (patch)
treec32cb486e8466f6480864e261fa223aadeb6a062 /mplayer.c
parentca9065b93fefea57423c376b28de1137c641223c (diff)
downloadmpv-1cb179855ea4911bc3f4a71bcc8343b26aa367e6.tar.bz2
mpv-1cb179855ea4911bc3f4a71bcc8343b26aa367e6.tar.xz
dvdnav: fix crash caused by missing line from 58834653c0
The committed version of 58834653c0 ("dvdnav: make mp_dvdnav_save_smpi() more robust") was somehow missing one line which caused a crash with dvdnav. Add it back.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index b77acb3088..5433fe41c8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2407,6 +2407,7 @@ static void mp_dvdnav_save_smpi(struct MPContext *mpctx, int in_size,
mpctx->nav_buffer = malloc(in_size);
if (mpctx->nav_buffer) {
mpctx->nav_start = start;
+ mpctx->nav_in_size = in_size;
memcpy(mpctx->nav_buffer, start, in_size);
}