Lines Matching defs:vcodec
214 static int flv_same_video_codec(AVCodecContext *vcodec, int flags)
218 if (!vcodec->codec_id && !vcodec->codec_tag)
223 return vcodec->codec_id == AV_CODEC_ID_FLV1;
225 return vcodec->codec_id == AV_CODEC_ID_FLASHSV;
227 return vcodec->codec_id == AV_CODEC_ID_FLASHSV2;
229 return vcodec->codec_id == AV_CODEC_ID_VP6F;
231 return vcodec->codec_id == AV_CODEC_ID_VP6A;
233 return vcodec->codec_id == AV_CODEC_ID_H264;
235 return vcodec->codec_tag == flv_codecid;
242 AVCodecContext *vcodec = vstream->codec;
245 vcodec->codec_id = AV_CODEC_ID_FLV1;
248 vcodec->codec_id = AV_CODEC_ID_H263;
251 vcodec->codec_id = AV_CODEC_ID_FLASHSV;
254 vcodec->codec_id = AV_CODEC_ID_FLASHSV2;
257 vcodec->codec_id = AV_CODEC_ID_VP6F;
260 vcodec->codec_id = AV_CODEC_ID_VP6A;
262 if (vcodec->extradata_size != 1) {
263 ff_alloc_extradata(vcodec, 1);
265 if (vcodec->extradata)
266 vcodec->extradata[0] = avio_r8(s->pb);
272 vcodec->codec_id = AV_CODEC_ID_H264;
276 vcodec->codec_id = AV_CODEC_ID_MPEG4;
280 vcodec->codec_tag = flv_codecid;
389 AVCodecContext *acodec, *vcodec;
464 vcodec = vstream ? vstream->codec : NULL;
470 else if (!strcmp(key, "videodatarate") && vcodec &&
472 vcodec->bit_rate = num_val * 1024.0;
482 if (!strcmp(key, "videocodecid") && vcodec) {
496 } else if (!strcmp(key, "width") && vcodec) {
497 vcodec->width = num_val;
498 } else if (!strcmp(key, "height") && vcodec) {
499 vcodec->height = num_val;
506 (!vcodec && !strcmp(key, "videocodecid"))))