[FFmpeg-cvslog] avformat/mxfenc: reindent after last mxfenc commit
Marton Balint
git at videolan.org
Sun Mar 26 23:15:09 EEST 2023
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Mar 26 21:38:26 2023 +0200| [cd954aa3c6e522053d6983a8bda8019e0feee826] | committer: Marton Balint
avformat/mxfenc: reindent after last mxfenc commit
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd954aa3c6e522053d6983a8bda8019e0feee826
---
libavformat/mxfenc.c | 72 ++++++++++++++++++++++++++--------------------------
1 file changed, 36 insertions(+), 36 deletions(-)
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index d83908ec0e..c79d0dc4be 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1236,43 +1236,43 @@ static int64_t mxf_write_cdci_common(AVFormatContext *s, AVStream *st, const UID
}
if (key != mxf_rgba_descriptor_key) {
- // component depth
- mxf_write_local_tag(s, 4, 0x3301);
- avio_wb32(pb, sc->component_depth);
-
- // horizontal subsampling
- mxf_write_local_tag(s, 4, 0x3302);
- avio_wb32(pb, sc->h_chroma_sub_sample);
-
- // vertical subsampling
- mxf_write_local_tag(s, 4, 0x3308);
- avio_wb32(pb, sc->v_chroma_sub_sample);
-
- // color siting
- mxf_write_local_tag(s, 1, 0x3303);
- avio_w8(pb, sc->color_siting);
-
- // Padding Bits
- mxf_write_local_tag(s, 2, 0x3307);
- avio_wb16(pb, 0);
-
- if (st->codecpar->color_range != AVCOL_RANGE_UNSPECIFIED) {
- int black = 0,
- white = (1<<sc->component_depth) - 1,
- color = (1<<sc->component_depth);
- if (st->codecpar->color_range == AVCOL_RANGE_MPEG) {
- black = 1 << (sc->component_depth - 4);
- white = 235 << (sc->component_depth - 8);
- color = (14 << (sc->component_depth - 4)) + 1;
+ // component depth
+ mxf_write_local_tag(s, 4, 0x3301);
+ avio_wb32(pb, sc->component_depth);
+
+ // horizontal subsampling
+ mxf_write_local_tag(s, 4, 0x3302);
+ avio_wb32(pb, sc->h_chroma_sub_sample);
+
+ // vertical subsampling
+ mxf_write_local_tag(s, 4, 0x3308);
+ avio_wb32(pb, sc->v_chroma_sub_sample);
+
+ // color siting
+ mxf_write_local_tag(s, 1, 0x3303);
+ avio_w8(pb, sc->color_siting);
+
+ // Padding Bits
+ mxf_write_local_tag(s, 2, 0x3307);
+ avio_wb16(pb, 0);
+
+ if (st->codecpar->color_range != AVCOL_RANGE_UNSPECIFIED) {
+ int black = 0,
+ white = (1<<sc->component_depth) - 1,
+ color = (1<<sc->component_depth);
+ if (st->codecpar->color_range == AVCOL_RANGE_MPEG) {
+ black = 1 << (sc->component_depth - 4);
+ white = 235 << (sc->component_depth - 8);
+ color = (14 << (sc->component_depth - 4)) + 1;
+ }
+ mxf_write_local_tag(s, 4, 0x3304);
+ avio_wb32(pb, black);
+ mxf_write_local_tag(s, 4, 0x3305);
+ avio_wb32(pb, white);
+ mxf_write_local_tag(s, 4, 0x3306);
+ avio_wb32(pb, color);
}
- mxf_write_local_tag(s, 4, 0x3304);
- avio_wb32(pb, black);
- mxf_write_local_tag(s, 4, 0x3305);
- avio_wb32(pb, white);
- mxf_write_local_tag(s, 4, 0x3306);
- avio_wb32(pb, color);
- }
- } // if (key != mxf_rgba_descriptor_key)
+ }
if (sc->signal_standard) {
mxf_write_local_tag(s, 1, 0x3215);
More information about the ffmpeg-cvslog
mailing list