Lines Matching defs:vst
88 AVStream *st = NULL, *vst = NULL;
115 vst = avformat_new_stream(s, NULL);
116 if (!vst)
118 avpriv_set_pts_info(vst, 33, 1, 10);
119 vmd->video_stream_index = vst->index;
120 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
121 vst->codecpar->codec_id = vmd->is_indeo3 ? AV_CODEC_ID_INDEO3 : AV_CODEC_ID_VMDVIDEO;
122 vst->codecpar->codec_tag = 0; /* no fourcc */
123 vst->codecpar->width = width;
124 vst->codecpar->height = height;
125 if(vmd->is_indeo3 && vst->codecpar->width > 320){
126 vst->codecpar->width >>= 1;
127 vst->codecpar->height >>= 1;
129 if ((ret = ff_alloc_extradata(vst->codecpar, VMD_HEADER_SIZE)) < 0)
131 memcpy(vst->codecpar->extradata, vmd->vmd_header, VMD_HEADER_SIZE);
171 if (vst)
172 avpriv_set_pts_info(vst, 33, num, den);
240 if (!vst)