mxfvc3: Also accept clip-wrapped vc-3
authorEdward Hervey <edward@centricular.com>
Tue, 27 Jul 2021 07:37:49 +0000 (09:37 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 27 Jul 2021 07:37:49 +0000 (09:37 +0200)
We can now handle this fine

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2434>

gst/mxf/mxfvc3.c

index c64ef90..76188a5 100644 (file)
@@ -89,8 +89,8 @@ mxf_vc3_handle_essence_element (const MXFUL * key, GstBuffer * buffer,
   *outbuf = buffer;
 
   /* SMPTE 2019-4 6.1 */
-  if (key->u[12] != 0x15 || (key->u[14] != 0x05 && key->u[14] != 0x0C
-          && key->u[14] != 0x0D)) {
+  if (key->u[12] != 0x15 || (key->u[14] != 0x05 && key->u[14] != 0x06
+          && key->u[14] != 0x0C && key->u[14] != 0x0D)) {
     GST_ERROR ("Invalid VC-3 essence element");
     return GST_FLOW_ERROR;
   }