emms_c();  avctx->frame_number++; return ret;
return ret; }else return 0;
int avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size,                          const AVFrame *pict){    int ret;    ret = avctx->codec->encode(avctx, buf, buf_size, (void *)pict);        emms_c(); //needed to avoid a emms_c() call before every return;    avctx->frame_number++;    return ret;}