Lines Matching defs:cin
76 static int cin_read_file_header(CinDemuxContext *cin, AVIOContext *pb) {
77 CinFileHeader *hdr = &cin->file_header;
99 CinDemuxContext *cin = s->priv_data;
100 CinFileHeader *hdr = &cin->file_header;
104 rc = cin_read_file_header(cin, pb);
108 cin->video_stream_pts = 0;
109 cin->audio_stream_pts = 0;
110 cin->audio_buffer_size = 0;
118 cin->video_stream_index = st->index;
131 cin->audio_stream_index = st->index;
144 static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb) {
145 CinFrameHeader *hdr = &cin->frame_header;
166 CinDemuxContext *cin = s->priv_data;
168 CinFrameHeader *hdr = &cin->frame_header;
172 if (cin->audio_buffer_size == 0) {
173 rc = cin_read_frame_header(cin, pb);
193 pkt->stream_index = cin->video_stream_index;
194 pkt->pts = cin->video_stream_pts++;
210 cin->audio_buffer_size = hdr->audio_frame_size;
215 ret = av_get_packet(pb, pkt, cin->audio_buffer_size);
219 pkt->stream_index = cin->audio_stream_index;
220 pkt->pts = cin->audio_stream_pts;
221 pkt->duration = cin->audio_buffer_size - (pkt->pts == 0);
222 cin->audio_stream_pts += pkt->duration;
223 cin->audio_buffer_size = 0;