Revision e14d374e

View differences:

libavformat/mxfenc.c
202 202
    ByteIOContext *pb = s->pb;
203 203
    int local_tag_number, i = 0;
204 204

  
205
    local_tag_number = sizeof(mxf_local_tag_batch) / sizeof(MXFLocalTagPair);
205
    local_tag_number = sizeof(mxf_local_tag_batch)/sizeof(*mxf_local_tag_batch);
206 206

  
207 207
    put_buffer(pb, primer_pack_key, 16);
208 208
    klv_encode_ber_length(pb, local_tag_number * 18 + 8);
......
650 650
{
651 651
    int i;
652 652
    const MXFDescriptorWriteTableEntry *desc = NULL;
653
    int track_number_sign[sizeof(mxf_essence_element_key)/sizeof(MXFCodecUL)] = { 0 };
653
    int track_number_sign[sizeof(mxf_essence_element_key)/
654
                          sizeof(*mxf_essence_element_key)] = {0};
654 655

  
655 656
    mxf_write_package(s, type);
656 657
    if (type == SourcePackage)
......
733 734

  
734 735
    for (i = 0; i < s->nb_streams; i++) {
735 736
        AVStream *st = s->streams[i];
736
        MXFStreamContext *sc = av_mallocz(sizeof(MXFStreamContext));
737
        MXFStreamContext *sc = av_mallocz(sizeof(*sc));
737 738
        if (!sc)
738 739
            return AVERROR(ENOMEM);
739 740
        st->priv_data = sc;

Also available in: Unified diff