Revision 576f1445 libavformat/mov.c

View differences:

libavformat/mov.c
961 961
#ifdef DEBUG
962 962
            av_log(NULL, AV_LOG_DEBUG, "frames/samples = %d\n", frames_per_sample);
963 963
#endif
964
        get_buffer(pb, codec_name, 32); /* codec name, pascal string (FIXME: true for mp4?) */
965
        if (codec_name[0] <= 31) {
966
            memcpy(st->codec->codec_name, &codec_name[1],codec_name[0]);
967
            st->codec->codec_name[codec_name[0]] = 0;
968
        }
964
            get_buffer(pb, codec_name, 32); /* codec name, pascal string (FIXME: true for mp4?) */
965
            if (codec_name[0] <= 31) {
966
                memcpy(st->codec->codec_name, &codec_name[1],codec_name[0]);
967
                st->codec->codec_name[codec_name[0]] = 0;
968
            }
969 969

  
970 970
            st->codec->bits_per_sample = get_be16(pb); /* depth */
971 971
            st->codec->color_table_id = get_be16(pb); /* colortable id */

Also available in: Unified diff