Lines Matching refs:result
46 int result;
48 result = avformat_open_input(&fmt_ctx, input_filename, NULL, NULL);
49 if (result < 0) {
51 return result;
54 result = avformat_find_stream_info(fmt_ctx, NULL);
55 if (result < 0) {
57 return result;
80 result = avcodec_parameters_to_context(ctx, origin_par);
81 if (result) {
83 return result;
86 result = avcodec_open2(ctx, codec, NULL);
87 if (result < 0) {
89 return result;
114 result = 0;
115 while (result >= 0) {
116 result = av_read_frame(fmt_ctx, pkt);
117 if (result >= 0 && pkt->stream_index != video_stream) {
122 if (result < 0)
123 result = avcodec_send_packet(ctx, NULL);
127 result = avcodec_send_packet(ctx, pkt);
131 if (result < 0) {
133 return result;
136 while (result >= 0) {
137 result = avcodec_receive_frame(ctx, fr);
138 if (result == AVERROR_EOF)
140 else if (result == AVERROR(EAGAIN)) {
141 result = 0;
143 } else if (result < 0) {
145 return result;