mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-26 20:50:34 +00:00
muxer添加stop日志
Signed-off-by: Atrotro <wanganzhouhh@163.com>
This commit is contained in:
parent
81b3e6655e
commit
f19b622e38
@ -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 (res >= 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user