Revision 53ffdd14 libavformat/mov.c

View differences:

libavformat/mov.c
773 773
    //MOVStreamContext *sc = (MOVStreamContext *)st->priv_data;
774 774
    int entries, frames_per_sample;
775 775
    uint32_t format;
776
    uint8_t codec_name[32];
776 777

  
777 778
    /* for palette traversal */
778 779
    int color_depth;
......
845 846
#ifdef DEBUG
846 847
	    av_log(NULL, AV_LOG_DEBUG, "frames/samples = %d\n", frames_per_sample);
847 848
#endif
848
	    get_buffer(pb, (uint8_t *)st->codec.codec_name, 32); /* codec name */
849
        get_buffer(pb, codec_name, 32); /* codec name, pascal string (FIXME: true for mp4?) */
850
        if (codec_name[0] <= 31) {
851
            memcpy(st->codec.codec_name, &codec_name[1],codec_name[0]);
852
            st->codec.codec_name[codec_name[0]] = 0;
853
        }
849 854

  
850 855
	    st->codec.bits_per_sample = get_be16(pb); /* depth */
851 856
            st->codec.color_table_id = get_be16(pb); /* colortable id */

Also available in: Unified diff