# HG changeset patch # User alex # Date 1008434985 0 # Node ID 7aed2edd99ab272b3af64c0e0523c6dc467745ed # Parent 1ff0ff94ac911ed441b804d64491e759b575b6fd -vivo version option added diff -r 1ff0ff94ac91 -r 7aed2edd99ab cfg-common.h --- a/cfg-common.h Sat Dec 15 16:44:54 2001 +0000 +++ b/cfg-common.h Sat Dec 15 16:49:45 2001 +0000 @@ -116,6 +116,7 @@ #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_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 -r 1ff0ff94ac91 -r 7aed2edd99ab libmpdemux/demux_viv.c --- a/libmpdemux/demux_viv.c Sat Dec 15 16:44:54 2001 +0000 +++ b/libmpdemux/demux_viv.c Sat Dec 15 16:49:45 2001 +0000 @@ -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 @@ 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);