[MPlayer-dev-eng] mencoder, VP8 and altref frames

Tobias Diedrich ranma+mplayer at tdiedrich.de
Thu Jun 23 22:33:37 CEST 2011


mencoder assumes that if decode_video returns NULL there was a
decoding problem and this should still be counted as a frame.
However with VP8 we have altref frames, which should not be counted.

I think we should change

void *decode_video(sh_video_t *sh_video, unsigned char *start, int in_size, int drop_frame, double pts, int *full_frame);

To something like:

enum decode_status decode_video(sh_video_t *sh_video, unsigned char *start, int drop_frame, double pts, void *decoded_frame);

Then vd_ffmpeg could pass down an appropriate status code indicating
that this frame should be ignored for timekeeping.
The status code can also be used to indicate full_frame for dvdnav.

Opinions?

-- 
Tobias						PGP: http://8ef7ddba.uguu.de


More information about the MPlayer-dev-eng mailing list