lavf/mxfenc: fix return value to int64_t

This commit is contained in:
Baptiste Coudurier 2025-06-04 11:35:31 -07:00
parent 1cd3f61ad8
commit 48c6b8a907

View file

@ -1613,11 +1613,10 @@ static int mxf_write_ffv1_subdesc(AVFormatContext *s, AVStream *st)
static int mxf_write_ffv1_desc(AVFormatContext *s, AVStream *st)
{
int is_rgb, pos;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(st->codecpar->format);
is_rgb = desc->flags & AV_PIX_FMT_FLAG_RGB;
int is_rgb = desc->flags & AV_PIX_FMT_FLAG_RGB;
pos = mxf_write_cdci_common(s, st, is_rgb ? mxf_rgba_descriptor_key : mxf_cdci_descriptor_key);
int64_t pos = mxf_write_cdci_common(s, st, is_rgb ? mxf_rgba_descriptor_key : mxf_cdci_descriptor_key);
mxf_update_klv_size(s->pb, pos);
return mxf_write_ffv1_subdesc(s, st);
}