Lines Matching refs:codecpar
112 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in flic_read_header()
113 st->codecpar->codec_id = AV_CODEC_ID_FLIC; in flic_read_header()
114 st->codecpar->codec_tag = 0; /* no fourcc */ in flic_read_header()
115 st->codecpar->width = AV_RL16(&header[0x08]); in flic_read_header()
116 st->codecpar->height = AV_RL16(&header[0x0A]); in flic_read_header()
118 if (!st->codecpar->width || !st->codecpar->height) { in flic_read_header()
123 st->codecpar->width = 640; in flic_read_header()
124 st->codecpar->height = 480; in flic_read_header()
128 if ((ret = ff_alloc_extradata(st->codecpar, FLIC_HEADER_SIZE)) < 0) in flic_read_header()
130 memcpy(st->codecpar->extradata, header, FLIC_HEADER_SIZE); in flic_read_header()
155 ast->codecpar->block_align = AV_RL32(&preamble[0]); in flic_read_header()
156 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in flic_read_header()
157 ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8; in flic_read_header()
158 ast->codecpar->codec_tag = 0; in flic_read_header()
159 ast->codecpar->sample_rate = FLIC_TFTD_SAMPLE_RATE; in flic_read_header()
160 ast->codecpar->channels = 1; in flic_read_header()
161 ast->codecpar->bit_rate = st->codecpar->sample_rate * 8; in flic_read_header()
162 ast->codecpar->bits_per_coded_sample = 8; in flic_read_header()
163 ast->codecpar->channel_layout = AV_CH_LAYOUT_MONO; in flic_read_header()
164 ast->codecpar->extradata_size = 0; in flic_read_header()
169 avpriv_set_pts_info(st, 64, ast->codecpar->block_align, FLIC_TFTD_SAMPLE_RATE); in flic_read_header()
178 if ((ret = ff_alloc_extradata(st->codecpar, 12)) < 0) in flic_read_header()
180 memcpy(st->codecpar->extradata, header, 12); in flic_read_header()