Lines Matching refs:result
80 int result;
93 result = av_seek_frame(fmt_ctx, video_stream, ts_start, AVSEEK_FLAG_ANY);
95 if (result < 0) {
97 return result;
103 result = av_read_frame(fmt_ctx, pkt);
104 if (result >= 0 && pkt->stream_index != video_stream) {
109 if (result < 0)
110 result = avcodec_send_packet(ctx, NULL);
116 result = avcodec_send_packet(ctx, pkt);
121 if (result < 0) {
123 return result;
126 while (result >= 0) {
127 result = avcodec_receive_frame(ctx, fr);
128 if (result == AVERROR_EOF)
130 else if (result == AVERROR(EAGAIN)) {
131 result = 0;
133 } else if (result < 0) {
135 return result;
159 } while (result >= 0 && (no_seeking || (fr->pts + fr->pkt_duration <= ts_end)));
194 int result;
203 result = avformat_open_input(&fmt_ctx, input_filename, NULL, NULL);
204 if (result < 0) {
206 return result;
209 result = avformat_find_stream_info(fmt_ctx, NULL);
210 if (result < 0) {
218 result = -1;
226 result = video_stream;
235 result = AVERROR_DECODER_NOT_FOUND;
242 result = AVERROR(ENOMEM);
246 result = avcodec_parameters_to_context(ctx, origin_par);
247 if (result) {
252 result = avcodec_open2(ctx, codec, NULL);
253 if (result < 0) {
261 result = AVERROR(ENOMEM);
268 result = AVERROR(ENOMEM);
272 result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, pkt, fr, 0, 0, 1);
273 if (result != 0)
278 result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, pkt, fr, i, j, 0);
279 if (result != 0)
291 return result;