Ticket #165: patchmovcinepak.diff

File patchmovcinepak.diff, 713 bytes (added by cehoyos, 5 years ago)
  • libavformat/mov.c

    diff --git a/libavformat/mov.c b/libavformat/mov.c
    index 773760c..a75217d 100644
    a b int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) 
    10461046                if (color_greyscale) { 
    10471047                    int color_index, color_dec; 
    10481048                    /* compute the greyscale palette */ 
    1049                     st->codec->bits_per_coded_sample = color_depth; 
     1049                    if (id != CODEC_ID_CINEPAK) 
     1050                        st->codec->bits_per_coded_sample = color_depth; 
    10501051                    color_count = 1 << color_depth; 
    10511052                    color_index = 255; 
    10521053                    color_dec = 256 / (color_count - 1);