Lines Matching defs:stream
64 AVStream *stream;
73 stream = av_new_stream(s, 0);
74 if (!stream)
76 av_set_pts_info(stream, 32, 1, 60); // 16 ms increments, i.e. 60 fps
77 stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
78 stream->codec->codec_id = CODEC_ID_BETHSOFTVID;
79 stream->codec->width = get_le16(pb);
80 stream->codec->height = get_le16(pb);
81 stream->codec->pix_fmt = PIX_FMT_PAL8;
86 stream = av_new_stream(s, 0);
87 if (!stream)
89 stream->codec->codec_type = AVMEDIA_TYPE_AUDIO;
90 stream->codec->codec_id = CODEC_ID_PCM_U8;
91 stream->codec->channels = 1;
92 stream->codec->sample_rate = 11025;
93 stream->codec->bits_per_coded_sample = 8;
94 stream->codec->bit_rate = stream->codec->channels * stream->codec->sample_rate * stream->codec->bits_per_coded_sample;
163 pkt->stream_index = 0; // use the video decoder, which was initialized as the first stream