]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mxfenc.c
lavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream.
[ffmpeg] / libavformat / mxfenc.c
index db7d2bf4552a0f1669d52d560496263a2b42419e..84ce979c610a62efac1f29f9ed8b1a2eda2817b6 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+/*
+ * signal_standard, color_siting and klv_fill_key version fixes sponsored by NOA GmbH
+ */
+
 /*
  * References
  * SMPTE 336M KLV Data Encoding Protocol Using Key-Length-Value
@@ -2056,7 +2060,7 @@ static int mxf_write_header(AVFormatContext *s)
             sc->color_siting = 0xFF;
 
             if (pix_desc) {
-                sc->component_depth     = pix_desc->comp[0].depth_minus1 + 1;
+                sc->component_depth     = pix_desc->comp[0].depth;
                 sc->h_chroma_sub_sample = 1 << pix_desc->log2_chroma_w;
             }
             switch (ff_choose_chroma_location(s, st)) {