Lines Matching refs:vst
50 AVStream *vst, *ast; in smush_read_header() local
142 vst = avformat_new_stream(ctx, 0); in smush_read_header()
143 if (!vst) in smush_read_header()
146 smush->video_stream_index = vst->index; in smush_read_header()
148 avpriv_set_pts_info(vst, 64, 1, 15); in smush_read_header()
150 vst->start_time = 0; in smush_read_header()
151 vst->duration = in smush_read_header()
152 vst->nb_frames = nframes; in smush_read_header()
153 vst->avg_frame_rate = av_inv_q(vst->time_base); in smush_read_header()
154 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in smush_read_header()
155 vst->codecpar->codec_id = AV_CODEC_ID_SANM; in smush_read_header()
156 vst->codecpar->codec_tag = 0; in smush_read_header()
157 vst->codecpar->width = width; in smush_read_header()
158 vst->codecpar->height = height; in smush_read_header()
161 if ((ret = ff_alloc_extradata(vst->codecpar, 1024 + 2)) < 0) in smush_read_header()
164 AV_WL16(vst->codecpar->extradata, subversion); in smush_read_header()
166 AV_WL32(vst->codecpar->extradata + 2 + i * 4, palette[i]); in smush_read_header()