Revision 859676dd ffmpeg.c

View differences:

ffmpeg.c
3419 3419
        }
3420 3420
#if CONFIG_AVFILTER
3421 3421
        if(frame_aspect_ratio > 0){
3422
            char *tmp;
3422 3423
            i = vfilters ? strlen(vfilters) : 0;
3423
            vfilters = av_realloc(vfilters, i+100);
3424
            snprintf(vfilters+i, i+100, "%csetdar=%f\n", i?',':' ', frame_aspect_ratio);
3424
            tmp= av_malloc(i+100);
3425
            snprintf(tmp, i+100, "setdar=%f%c%s\n", frame_aspect_ratio, i?',':' ', vfilters ? vfilters : "");
3426
            av_freep(&vfilters);
3427
            vfilters= tmp;
3425 3428
            frame_aspect_ratio=0;
3426 3429
        }
3427 3430

  

Also available in: Unified diff