summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-07 18:46:15 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-15 13:32:02 +0200
commit2ab9f247f7feb23bc9765dcbcc574687552fcea6 (patch)
tree3aa976400fd70c8e055dc181e752af2e07772357
parenta1002bc39c46df5d468666e6bd9f490b023d3ca2 (diff)
downloadffmpeg-2ab9f247f7feb23bc9765dcbcc574687552fcea6.tar.gz
fftools/ffmpeg: log corrupt-frame errors to the appropriate context
-rw-r--r--fftools/ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 981714d027..092c5e179a 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -779,8 +779,8 @@ static void check_decode_result(InputStream *ist, int *got_output, int ret)
if (*got_output && ist) {
if (ist->decoded_frame->decode_error_flags || (ist->decoded_frame->flags & AV_FRAME_FLAG_CORRUPT)) {
- av_log(NULL, exit_on_error ? AV_LOG_FATAL : AV_LOG_WARNING,
- "%s: corrupt decoded frame in stream %d\n", input_files[ist->file_index]->ctx->url, ist->st->index);
+ av_log(ist, exit_on_error ? AV_LOG_FATAL : AV_LOG_WARNING,
+ "corrupt decoded frame\n");
if (exit_on_error)
exit_program(1);
}