Lines Matching defs:cin
74 static int cin_read_file_header(CinDemuxContext *cin, AVIOContext *pb) {
75 CinFileHeader *hdr = &cin->file_header;
97 CinDemuxContext *cin = s->priv_data;
98 CinFileHeader *hdr = &cin->file_header;
102 rc = cin_read_file_header(cin, pb);
106 cin->video_stream_pts = 0;
107 cin->audio_stream_pts = 0;
108 cin->audio_buffer_size = 0;
116 cin->video_stream_index = st->index;
129 cin->audio_stream_index = st->index;
141 static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb) {
142 CinFrameHeader *hdr = &cin->frame_header;
161 CinDemuxContext *cin = s->priv_data;
163 CinFrameHeader *hdr = &cin->frame_header;
167 if (cin->audio_buffer_size == 0) {
168 rc = cin_read_frame_header(cin, pb);
186 pkt->stream_index = cin->video_stream_index;
187 pkt->pts = cin->video_stream_pts++;
203 cin->audio_buffer_size = hdr->audio_frame_size;
208 ret = av_get_packet(pb, pkt, cin->audio_buffer_size);
212 pkt->stream_index = cin->audio_stream_index;
213 pkt->pts = cin->audio_stream_pts;
214 pkt->duration = cin->audio_buffer_size - (pkt->pts == 0);
215 cin->audio_stream_pts += pkt->duration;
216 cin->audio_buffer_size = 0;