summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-28 21:56:18 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-28 21:56:18 +0000
commit9d613c659cde0c1fd9ecb2dcfd8fa75f270394d8 (patch)
tree50a68bc2a85118b46be97a721a0e3fdab2a7eefd /libmpcodecs
parent60d27c02edd2d552ebfddbda554fb5839cee7e4a (diff)
downloadmpv-9d613c659cde0c1fd9ecb2dcfd8fa75f270394d8.tar.bz2
mpv-9d613c659cde0c1fd9ecb2dcfd8fa75f270394d8.tar.xz
Add type= and fix a minor typing difference from ffmpeg
(now encoding (ffmpeg) and playback (mplayer) differ just on one of 1438lines - 0.1error in rounding ;) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6834 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 303bc30853..c5f25ad15c 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -413,11 +413,10 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
all_frametime+=sh->frametime;
fprintf(fvstats, "frame= %5d q= %2d f_size= %6d s_size= %8.0fkB ",
++frame_number, avctx->quality, len, (double)all_len/1024);
- fprintf(fvstats, "time= %0.3f br= %7.1fkbit/s avg_br= %7.1fkbit/s\n",
+ fprintf(fvstats, "time= %0.3f br= %7.1fkbits/s avg_br= %7.1fkbits/s ",
all_frametime, (double)(len*8)/sh->frametime/1000.0,
(double)(all_len*8)/all_frametime/1000.0);
- // FIXME key_frame isn't set by lavc on decoding! ::atmos
- //fprintf(fvstats, "type= %c\n", avctx->key_frame == 1 ? 'I' : 'P');
+ fprintf(fvstats, "type= %c\n", sh->ds->flags&1 ? 'I' : 'P');
break;
}
//--