Lines Matching defs:ic
60 AVFormatContext *ic = avformat_alloc_context();
82 ic->flags |= AVFMT_FLAG_FAST_SEEK;
102 ret = avformat_open_input(&ic, filename, NULL, &format_opts);
109 ret = avformat_find_stream_info(ic, NULL);
116 if(firstback) avformat_seek_file(ic, -1, INT64_MIN, seekfirst, seekfirst, 0);
117 else avformat_seek_file(ic, -1, seekfirst, seekfirst, INT64_MAX, 0);
126 ret= av_read_frame(ic, &pkt);
129 st= ic->streams[pkt.stream_index];
142 stream_id= (i>>1)%(ic->nb_streams+1) - 1;
145 st= ic->streams[stream_id];
149 if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, timestamp, 0);
150 else ret = avformat_seek_file(ic, stream_id, timestamp, timestamp, INT64_MAX, 0);
155 avformat_close_input(&ic);