MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / check_decode_result

Function check_decode_result

ffmpeg-single-cmd/src/main/cpp/ffmpeg_mod.c:2122–2136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2120}
2121
2122static 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.
2139static int ifilter_has_all_input_formats(FilterGraph *fg)

Callers 3

decode_audioFunction · 0.85
decode_videoFunction · 0.85
transcode_subtitlesFunction · 0.85

Calls 1

exit_programFunction · 0.85

Tested by

no test coverage detected