From 149f8a1265aa2e30d8b7085ba38ddbc465ff364e Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 15 Dec 2001 16:49:45 +0000 Subject: [PATCH] -vivo version option added git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3504 b3059339-0415-0410-9bf9-f77b7e298cf2 --- cfg-common.h | 2 ++ libmpdemux/demux_viv.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/cfg-common.h b/cfg-common.h index 0b574c2462..70909f5786 100644 --- a/cfg-common.h +++ b/cfg-common.h @@ -116,6 +116,7 @@ struct config tvopts_conf[]={ #endif /* VIVO demuxer options: */ +extern int vivo_param_version; extern char *vivo_param_acodec; extern int vivo_param_abitrate; extern int vivo_param_samplerate; @@ -125,6 +126,7 @@ extern int vivo_param_height; extern int vivo_param_vformat; struct config vivoopts_conf[]={ + {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0}, /* audio options */ {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0}, {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0}, diff --git a/libmpdemux/demux_viv.c b/libmpdemux/demux_viv.c index 4895724ba3..6fd8c2bf8f 100644 --- a/libmpdemux/demux_viv.c +++ b/libmpdemux/demux_viv.c @@ -16,6 +16,7 @@ #include "bswap.h" /* parameters ! */ +int vivo_param_version = -1; char *vivo_param_acodec = NULL; int vivo_param_abitrate = -1; int vivo_param_samplerate = -1; @@ -547,6 +548,8 @@ void demux_open_vivo(demuxer_t* demuxer){ h263_decode_picture_header(demuxer->video->buffer); + if (vivo_param_version != -1) + priv->version = '0' + vivo_param_version; { sh_video_t* sh=new_sh_video(demuxer,0);