avformat/mxfenc: Simplfy writing padding

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-23 02:16:41 +02:00
parent 9fab059eab
commit c3222931ab

View File

@ -965,7 +965,6 @@ static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF
{ {
MXFContext *mxf = s->priv_data; MXFContext *mxf = s->priv_data;
AVIOContext *pb = s->pb; AVIOContext *pb = s->pb;
int i;
mxf_write_metadata_key(pb, 0x011100); mxf_write_metadata_key(pb, 0x011100);
PRINT_KEY(s, "sturctural component key", pb->buf_ptr - 16); PRINT_KEY(s, "sturctural component key", pb->buf_ptr - 16);
@ -985,8 +984,7 @@ static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF
// write source package uid, end of the reference // write source package uid, end of the reference
mxf_write_local_tag(s, 32, 0x1101); mxf_write_local_tag(s, 32, 0x1101);
if (!package->ref) { if (!package->ref) {
for (i = 0; i < 4; i++) ffio_fill(pb, 0, 32);
avio_wb64(pb, 0);
} else } else
mxf_write_umid(s, package->ref->instance); mxf_write_umid(s, package->ref->instance);