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);