muxer添加stop日志

Signed-off-by: Atrotro <wanganzhouhh@163.com>
This commit is contained in:
Atrotro 2024-10-31 15:53:55 +08:00
parent 81b3e6655e
commit 020a84bc4f

View File

@ -4970,8 +4970,12 @@ static int mov_write_moov_tag(AVIOContext *pb, MOVMuxContext *mov,
if (mov->tracks[i].entry > 0 || mov->flags & FF_MOV_FLAG_FRAGMENT ||
mov->mode == MODE_AVIF) {
int ret = mov_write_trak_tag(s, pb, mov, &(mov->tracks[i]), i < s->nb_streams ? s->streams[i] : NULL);
if (ret < 0)
if (ret >= 0) {
av_log(NULL, AV_LOG_INFO, "Wrote track %d successfully.\n", i);
} else {
av_log(NULL, AV_LOG_ERROR, "Failed to write track %d.\n", i);
return ret;
}
}
}
if (mov->flags & FF_MOV_FLAG_FRAGMENT)
@ -8146,6 +8150,12 @@ static int mov_write_trailer(AVFormatContext *s)
}
}
if (res == 0) {
av_log(s, AV_LOG_INFO, "Trailer written successfully.\n");
} else {
av_log(s, AV_LOG_ERROR, "Error writing trailer: %d\n", res);
}
return res;
}