Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 8347:03ee1d7deba5
PSNR
author | michael |
---|---|
date | Wed, 04 Dec 2002 21:46:53 +0000 |
parents | fd670708f87f |
children | 5630321c8026 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Wed Dec 04 21:42:22 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Wed Dec 04 21:46:53 2002 +0000 @@ -501,6 +501,7 @@ if(ret<0) mp_msg(MSGT_DECVIDEO,MSGL_WARN, "Error while decoding frame!\n"); //-- vstats generation +#if LIBAVCODEC_BUILD >= 4643 while(lavc_param_vstats){ // always one time loop static FILE *fvstats=NULL; char filename[20]; @@ -533,21 +534,22 @@ all_frametime, (double)(len*8)/sh->frametime/1000.0, (double)(all_len*8)/all_frametime/1000.0); switch(pic->pict_type){ - case I_TYPE: + case FF_I_TYPE: fprintf(fvstats, "type= I\n"); break; - case P_TYPE: + case FF_P_TYPE: fprintf(fvstats, "type= P\n"); break; - case S_TYPE: + case FF_S_TYPE: fprintf(fvstats, "type= S\n"); break; - case B_TYPE: + case FF_B_TYPE: fprintf(fvstats, "type= B\n"); break; } break; } +#endif //-- if(!got_picture) return NULL; // skipped image