| 2120 | } |
| 2121 | |
| 2122 | static void check_decode_result(InputStream *ist, int *got_output, int ret) |
| 2123 | { |
| 2124 | if (*got_output || ret<0) |
| 2125 | decode_error_stat[ret<0] ++; |
| 2126 | |
| 2127 | if (ret < 0 && exit_on_error) |
| 2128 | exit_program(1); |
| 2129 | |
| 2130 | if (exit_on_error && *got_output && ist) { |
| 2131 | if (av_frame_get_decode_error_flags(ist->decoded_frame) || (ist->decoded_frame->flags & AV_FRAME_FLAG_CORRUPT)) { |
| 2132 | av_log(NULL, AV_LOG_FATAL, "%s: corrupt decoded frame in stream %d\n", input_files[ist->file_index]->ctx->filename, ist->st->index); |
| 2133 | exit_program(1); |
| 2134 | } |
| 2135 | } |
| 2136 | } |
| 2137 | |
| 2138 | // Filters can be configured only if the formats of all inputs are known. |
| 2139 | static int ifilter_has_all_input_formats(FilterGraph *fg) |
no test coverage detected