Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 917591 | Differences between
and this patch

Collapse All | Expand All

(-)a/libavformat/matroskadec.c (-1 / +3 lines)
Lines 54-59 Link Here
54
#include "libavcodec/bytestream.h"
54
#include "libavcodec/bytestream.h"
55
#include "libavcodec/defs.h"
55
#include "libavcodec/defs.h"
56
#include "libavcodec/flac.h"
56
#include "libavcodec/flac.h"
57
#include "libavcodec/itut35.h"
57
#include "libavcodec/mpeg4audio.h"
58
#include "libavcodec/mpeg4audio.h"
58
#include "libavcodec/packet_internal.h"
59
#include "libavcodec/packet_internal.h"
59
60
Lines 3884-3890 static int matroska_parse_block_additional(MatroskaDemuxContext *matroska, Link Here
3884
        country_code  = bytestream2_get_byteu(&bc);
3885
        country_code  = bytestream2_get_byteu(&bc);
3885
        provider_code = bytestream2_get_be16u(&bc);
3886
        provider_code = bytestream2_get_be16u(&bc);
3886
3887
3887
        if (country_code != 0xB5 || provider_code != 0x3C)
3888
        if (country_code != ITU_T_T35_COUNTRY_CODE_US ||
3889
            provider_code != ITU_T_T35_PROVIDER_CODE_SMTPE)
3888
            break; // ignore
3890
            break; // ignore
3889
3891
3890
        provider_oriented_code = bytestream2_get_be16u(&bc);
3892
        provider_oriented_code = bytestream2_get_be16u(&bc);
(-)a/libavformat/matroskaenc.c (-3 / +3 lines)
Lines 63-68 Link Here
63
#include "libavcodec/codec_desc.h"
63
#include "libavcodec/codec_desc.h"
64
#include "libavcodec/codec_par.h"
64
#include "libavcodec/codec_par.h"
65
#include "libavcodec/defs.h"
65
#include "libavcodec/defs.h"
66
#include "libavcodec/itut35.h"
66
#include "libavcodec/xiph.h"
67
#include "libavcodec/xiph.h"
67
#include "libavcodec/mpeg4audio.h"
68
#include "libavcodec/mpeg4audio.h"
68
69
Lines 2824-2831 static int mkv_write_block(void *logctx, MatroskaMuxContext *mkv, Link Here
2824
            uint8_t *payload = t35_buf;
2825
            uint8_t *payload = t35_buf;
2825
            size_t payload_size = sizeof(t35_buf) - 6;
2826
            size_t payload_size = sizeof(t35_buf) - 6;
2826
2827
2827
            bytestream_put_byte(&payload, 0xB5); // country_code
2828
            bytestream_put_byte(&payload, ITU_T_T35_COUNTRY_CODE_US);
2828
            bytestream_put_be16(&payload, 0x3C); // provider_code
2829
            bytestream_put_be16(&payload, ITU_T_T35_PROVIDER_CODE_SMTPE);
2829
            bytestream_put_be16(&payload, 0x01); // provider_oriented_code
2830
            bytestream_put_be16(&payload, 0x01); // provider_oriented_code
2830
            bytestream_put_byte(&payload, 0x04); // application_identifier
2831
            bytestream_put_byte(&payload, 0x04); // application_identifier
2831
2832
2832
- 

Return to bug 917591