[MPlayer-users] Adding support for Theora 4:2:2 and 4:4:4 video files
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Feb 14 15:23:11 CET 2010
On Sun, Feb 14, 2010 at 03:08:02PM +0100, Giorgio wrote:
> I made all the corrections, I hope it's better now. This is my first
> patch, so thank you for your patience.
I have some more comments, I can of course easily make the modifications
myself, but I thought maybe you're interested in the comments anyway.
> +/* This function converts Theora pixelformat to the corresponding IMGFMT_ */
> +static unsigned int convert_pixelformat(sh_video_t *sh){
I'd change it to
static uint32_t theora_pixelformat2imgfmt(theora_pixelformat fmt)
(so the argument is then context->inf.pixelformat)
> + switch(context->inf.pixelformat) {
> + case OC_PF_420: return IMGFMT_YV12;
> + case OC_PF_422: return IMGFMT_422P;
> + case OC_PF_444: return IMGFMT_444P;
> + }
Misses a return for the case that none of these match.
I'd suggest adding a
return 0;
More information about the MPlayer-users
mailing list