Revision 2a317c6b

View differences:

libavcodec/ffv1.c
944 944
    if(init_slice_state(s) < 0)
945 945
        return -1;
946 946

  
947
    avctx->stats_out= av_mallocz(1024*30);
947
#define STATS_OUT_SIZE 1024*30
948
    avctx->stats_out= av_mallocz(STATS_OUT_SIZE);
948 949

  
949 950
    return 0;
950 951
}
......
1082 1083
    if((avctx->flags&CODEC_FLAG_PASS1) && (f->picture_number&31)==0){
1083 1084
        int j;
1084 1085
        char *p= avctx->stats_out;
1085
        char *end= p + 1024*30;
1086
        char *end= p + STATS_OUT_SIZE;
1086 1087

  
1087 1088
        memset(f->rc_stat, 0, sizeof(f->rc_stat));
1088 1089
        for(j=0; j<f->slice_count; j++){

Also available in: Unified diff