Revision 1a5e4fd8 libavformat/movenc.c

View differences:

libavformat/movenc.c
827 827
    memset(compressor_name,0,32);
828 828
    /* FIXME not sure, ISO 14496-1 draft where it shall be set to 0 */
829 829
    if (track->mode == MODE_MOV && track->enc->codec && track->enc->codec->name)
830
        strncpy(compressor_name,track->enc->codec->name,31);
830
        av_strlcpy(compressor_name,track->enc->codec->name,32);
831 831
    avio_w8(pb, strlen(compressor_name));
832 832
    avio_write(pb, compressor_name, 31);
833 833

  

Also available in: Unified diff