diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-01 08:50:45 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-01 08:50:45 +0000 |
commit | aec5dcc8347c29d4a27f5741e8b84222b19795b3 (patch) | |
tree | 0ff1c1310f2855b98da98d130e512670d0fcad6a /dec_video.c | |
parent | 61ceb9cf6d8b656193198b7ead0df128858b615a (diff) | |
download | mpv-aec5dcc8347c29d4a27f5741e8b84222b19795b3.tar.bz2 mpv-aec5dcc8347c29d4a27f5741e8b84222b19795b3.tar.xz |
Providing new tune info
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4454 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dec_video.c b/dec_video.c index a866f5896c..4ce807f43c 100644 --- a/dec_video.c +++ b/dec_video.c @@ -413,8 +413,10 @@ void uninit_video(sh_video_t *sh_video){ sh_video->inited=0; } -int init_video(sh_video_t *sh_video){ +int init_video(sh_video_t *sh_video,int *pitches) +{ unsigned int out_fmt=sh_video->codec->outfmt[sh_video->outfmtidx]; +pitches[0] = pitches[1] =pitches[2] = 0; /* fake unknown */ sh_video->our_out_buffer=NULL; @@ -581,6 +583,9 @@ switch(sh_video->codec->driver){ mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_NoLAVCsupport); return 0; #else + /* Just because we know that */ + pitches[0] = 16; + pitches[1] = pitches[2] = 8; mp_msg(MSGT_DECVIDEO,MSGL_V,"FFmpeg's libavcodec video codec\n"); if(!avcodec_inited){ avcodec_init(); @@ -620,6 +625,9 @@ switch(sh_video->codec->driver){ #else if(divx_quality) mp_msg(MSGT_DECVIDEO,MSGL_HINT,MSGTR_MpegPPhint); #endif + /* Just because we know that */ + pitches[0] = 16; + pitches[1] = pitches[2] = 8; // send seq header to the decoder: mpeg2_decode_data(NULL,videobuffer,videobuffer+videobuf_len,0); mpeg2_allocate_image_buffers (picture); |