Ticket #1193: patchcram.diff

File patchcram.diff, 428 bytes (added by cehoyos, 4 years ago)
  • libavcodec/msvideo1enc.c

    diff --git a/libavcodec/msvideo1enc.c b/libavcodec/msvideo1enc.c
    index aa3c26a..96fbea2 100644
    a b static av_cold int encode_init(AVCodecContext *avctx) 
    276276 
    277277    avcodec_get_frame_defaults(&c->pic); 
    278278    avctx->coded_frame = (AVFrame*)&c->pic; 
     279    avctx->bits_per_coded_sample = 16; 
    279280 
    280281    c->keyint = avctx->keyint_min; 
    281282    av_lfg_init(&c->rnd, 1);