Ticket #9079: 0001-avformat-mxfenc-add-Coding-Equations-and-Color-Prima.patch

File 0001-avformat-mxfenc-add-Coding-Equations-and-Color-Prima.patch, 6.6 KB (added by Marton Balint, 6 years ago)
  • libavformat/mxfenc.c

    From db3d728721d2daa884ad09263cec285b12867368 Mon Sep 17 00:00:00 2001
    From: Marton Balint <cus@passwd.hu>
    Date: Mon, 25 Jan 2021 22:04:05 +0100
    Subject: [PATCH] avformat/mxfenc: add Coding Equations and Color Primaries to
     local tags
    
    Signed-off-by: Marton Balint <cus@passwd.hu>
    ---
     libavformat/mxfenc.c                    | 2 ++
     tests/ref/fate/copy-trac4914            | 2 +-
     tests/ref/fate/mxf-d10-user-comments    | 2 +-
     tests/ref/fate/mxf-opatom-user-comments | 2 +-
     tests/ref/fate/mxf-reel_name            | 2 +-
     tests/ref/fate/mxf-user-comments        | 2 +-
     tests/ref/fate/time_base                | 2 +-
     tests/ref/lavf/mxf                      | 6 +++---
     tests/ref/lavf/mxf_d10                  | 2 +-
     tests/ref/lavf/mxf_dv25                 | 2 +-
     tests/ref/lavf/mxf_dvcpro50             | 2 +-
     tests/ref/lavf/mxf_opatom               | 2 +-
     tests/ref/lavf/mxf_opatom_audio         | 2 +-
     13 files changed, 16 insertions(+), 14 deletions(-)
    
    diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
    index 6c5331ad62..0c464d4cfd 100644
    a b static const MXFLocalTagPair mxf_local_tag_batch[] = {  
    361361    { 0x3217, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x05,0x04,0x01,0x03,0x02,0x07,0x00,0x00,0x00}}, /* Display F2 offset */
    362362    { 0x320E, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x01,0x04,0x01,0x01,0x01,0x01,0x00,0x00,0x00}}, /* Aspect Ratio */
    363363    { 0x3210, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x01,0x02,0x01,0x01,0x01,0x02,0x00}}, /* Transfer characteristic */
     364    { 0x321A, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x01,0x02,0x01,0x01,0x03,0x01,0x00}}, /* Coding Equations (color space) */
     365    { 0x3219, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x09,0x04,0x01,0x02,0x01,0x01,0x06,0x01,0x00}}, /* Color Primaries */
    364366    { 0x3213, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x18,0x01,0x02,0x00,0x00,0x00,0x00}}, /* Image Start Offset */
    365367    { 0x3214, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x18,0x01,0x03,0x00,0x00,0x00,0x00}}, /* Image End Offset */
    366368    { 0x3201, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x01,0x06,0x01,0x00,0x00,0x00,0x00}}, /* Picture Essence Coding */
  • tests/ref/fate/copy-trac4914

    diff --git a/tests/ref/fate/copy-trac4914 b/tests/ref/fate/copy-trac4914
    index 7c8d0e9158..e8f8afb467 100644
    a b  
    1 b37c4d5693cdb5b9ed9b33501ffb682a *tests/data/fate/copy-trac4914.mxf
     15d58a32f21b78169d925845f783054e6 *tests/data/fate/copy-trac4914.mxf
    22561721 tests/data/fate/copy-trac4914.mxf
    33#tb 0: 1001/30000
    44#media_type 0: video
  • tests/ref/fate/mxf-d10-user-comments

    diff --git a/tests/ref/fate/mxf-d10-user-comments b/tests/ref/fate/mxf-d10-user-comments
    index de4f26c6f8..3b9d9d2142 100644
    a b  
    1 68f0fa62b6a676894afbbe4c34ebf70b
     1fe9b43f5b6e7737fe2670b660fd3d860
  • tests/ref/fate/mxf-opatom-user-comments

    diff --git a/tests/ref/fate/mxf-opatom-user-comments b/tests/ref/fate/mxf-opatom-user-comments
    index 90e3fb229a..be57eb4e19 100644
    a b  
    1 f6760a9e710ba478bc3949f3e5c9b34a
     19b3d7201c37c5783702774e46e0da141
  • tests/ref/fate/mxf-reel_name

    diff --git a/tests/ref/fate/mxf-reel_name b/tests/ref/fate/mxf-reel_name
    index 16022b1789..acda8fe43a 100644
    a b  
    1 73a891041b2fc836a893ffb49fff4fff
     1422d6ed4821e7bbecbcdecc553abc6e4
  • tests/ref/fate/mxf-user-comments

    diff --git a/tests/ref/fate/mxf-user-comments b/tests/ref/fate/mxf-user-comments
    index ddf51d939c..3b77db9118 100644
    a b  
    1 1255faf854223a74d707553121e5eca3
     1c77b632dbcdacd6466e1ec794917556e
  • tests/ref/fate/time_base

    diff --git a/tests/ref/fate/time_base b/tests/ref/fate/time_base
    index 710fde1002..d3c97956d6 100644
    a b  
    1 42863a53f6c63efbc8c5a2eb76f13f5f
     1e5c9da6972b6f6e7b15bcbbf20a9dbd1
  • tests/ref/lavf/mxf

    diff --git a/tests/ref/lavf/mxf b/tests/ref/lavf/mxf
    index 5b16496f06..1b1fe1a734 100644
    a b  
    1 27b98795036b334e100c15c7e06d948f *tests/data/lavf/lavf.mxf
     11703da2e9f0ca49a5f0bcbcc6944c9c0 *tests/data/lavf/lavf.mxf
    22526393 tests/data/lavf/lavf.mxf
    33tests/data/lavf/lavf.mxf CRC=0x8dddfaab
    4 783b475a818602f54e947094d57e2981 *tests/data/lavf/lavf.mxf
     4b44c4f138f1a87256211c3112dd52c87 *tests/data/lavf/lavf.mxf
    55561721 tests/data/lavf/lavf.mxf
    66tests/data/lavf/lavf.mxf CRC=0x96ff1b48
    7 02bf8f0cd8951a49e277306691cb1538 *tests/data/lavf/lavf.mxf
     79ede3c95054c30eb815fbe598a1f097b *tests/data/lavf/lavf.mxf
    88526393 tests/data/lavf/lavf.mxf
    99tests/data/lavf/lavf.mxf CRC=0x8dddfaab
  • tests/ref/lavf/mxf_d10

    diff --git a/tests/ref/lavf/mxf_d10 b/tests/ref/lavf/mxf_d10
    index 30701619e0..19e6f20b51 100644
    a b  
    1 da0ebbebb50a530b14c0f06017f464b3 *tests/data/lavf/lavf.mxf_d10
     1c72f1f3d6ce555f96946c421f705f880 *tests/data/lavf/lavf.mxf_d10
    225332013 tests/data/lavf/lavf.mxf_d10
    33tests/data/lavf/lavf.mxf_d10 CRC=0x6c74d488
  • tests/ref/lavf/mxf_dv25

    diff --git a/tests/ref/lavf/mxf_dv25 b/tests/ref/lavf/mxf_dv25
    index d4559df862..2951538cae 100644
    a b  
    1 57623b3b968c0bb0d8a0bbaeef6fe657 *tests/data/lavf/lavf.mxf_dv25
     15048796729fba47e9614a177c370e850 *tests/data/lavf/lavf.mxf_dv25
    223834413 tests/data/lavf/lavf.mxf_dv25
    33tests/data/lavf/lavf.mxf_dv25 CRC=0xbdaf7f52
  • tests/ref/lavf/mxf_dvcpro50

    diff --git a/tests/ref/lavf/mxf_dvcpro50 b/tests/ref/lavf/mxf_dvcpro50
    index 8bcf67d17f..9df2fc925d 100644
    a b  
    1 6e82b4cc962199e2593e30851ff7ccfb *tests/data/lavf/lavf.mxf_dvcpro50
     17023122fc4bcd5c12de6a33cc78ce9b8 *tests/data/lavf/lavf.mxf_dvcpro50
    227431213 tests/data/lavf/lavf.mxf_dvcpro50
    33tests/data/lavf/lavf.mxf_dvcpro50 CRC=0xe3bbe4b4
  • tests/ref/lavf/mxf_opatom

    diff --git a/tests/ref/lavf/mxf_opatom b/tests/ref/lavf/mxf_opatom
    index 1aa843a22a..bff36e02be 100644
    a b  
    1 d5f56215c2b16dee204f03bfa653dd1b *tests/data/lavf/lavf.mxf_opatom
     18a4c5680b0955d4e2abecfb1c37a56d4 *tests/data/lavf/lavf.mxf_opatom
    224717625 tests/data/lavf/lavf.mxf_opatom
    33tests/data/lavf/lavf.mxf_opatom CRC=0xf55aa22a
  • tests/ref/lavf/mxf_opatom_audio

    diff --git a/tests/ref/lavf/mxf_opatom_audio b/tests/ref/lavf/mxf_opatom_audio
    index 2b9306f1df..5c65a373e2 100644
    a b  
    1 c45bb140605339556a77e751fda2c449 *tests/data/lavf/lavf.mxf_opatom_audio
     1697f4eb4a472909945222d7750145f80 *tests/data/lavf/lavf.mxf_opatom_audio
    22102969 tests/data/lavf/lavf.mxf_opatom_audio
    33tests/data/lavf/lavf.mxf_opatom_audio CRC=0xd155c6ff