Index: libmpcodecs/ve_lavc.c =================================================================== --- libmpcodecs/ve_lavc.c (revision 31871) +++ libmpcodecs/ve_lavc.c (working copy) @@ -826,6 +826,9 @@ static int encode_frame(struct vf_instan assert(MP_NOPTS_VALUE == AV_NOPTS_VALUE); #endif //fprintf(stderr, "ve_lavc %f/%f\n", dts, pts); + /* store stats if there are any */ + if(lavc_venc_context->stats_out && stats_file) + fprintf(stats_file, "%s", lavc_venc_context->stats_out); if(out_size == 0 && lavc_param_skip_threshold==0 && lavc_param_skip_factor==0){ ++mux_v->encoder_delay; return 0; @@ -887,9 +890,6 @@ static int encode_frame(struct vf_instan pict_type_char[lavc_venc_context->coded_frame->pict_type] ); } - /* store stats if there are any */ - if(lavc_venc_context->stats_out && stats_file) - fprintf(stats_file, "%s", lavc_venc_context->stats_out); return out_size; } @@ -1029,6 +1029,8 @@ static int vf_open(vf_instance_t *vf, ch mux_v->bih->biCompression = mmioFOURCC('d', 'r', 'a', 'c'); else if (!strcasecmp(lavc_param_vcodec, "libdirac")) mux_v->bih->biCompression = mmioFOURCC('d', 'r', 'a', 'c'); + else if (!strcasecmp(lavc_param_vcodec, "libvpx")) + mux_v->bih->biCompression = mmioFOURCC('V', 'P', '8', '0'); else mux_v->bih->biCompression = mmioFOURCC(lavc_param_vcodec[0], lavc_param_vcodec[1], lavc_param_vcodec[2], lavc_param_vcodec[3]); /* FIXME!!! */