Mercurial > mplayer.hg
changeset 25570:b7ab557b7b30
remove code for colorspaces x264 doesn't support
author | lorenm |
---|---|
date | Sat, 05 Jan 2008 11:03:54 +0000 |
parents | 1ab8dade208c |
children | 8dde1c29a3f1 |
files | libmpcodecs/ve_x264.c |
diffstat | 1 files changed, 1 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c Sat Jan 05 10:48:17 2008 +0000 +++ b/libmpcodecs/ve_x264.c Sat Jan 05 11:03:54 2008 +0000 @@ -156,6 +156,7 @@ mod->mux->bih->biWidth = width; mod->mux->bih->biHeight = height; + mod->mux->bih->biSizeImage = width * height * 3; mod->mux->aspect = (float)d_width/d_height; // make sure param is initialized @@ -172,35 +173,9 @@ switch(outfmt) { case IMGFMT_I420: param.i_csp = X264_CSP_I420; - mod->mux->bih->biSizeImage = width * height * 3; break; case IMGFMT_YV12: param.i_csp = X264_CSP_YV12; - mod->mux->bih->biSizeImage = width * height * 3; - break; - case IMGFMT_422P: - param.i_csp = X264_CSP_I422; - mod->mux->bih->biSizeImage = width * height * 3; - break; - case IMGFMT_444P: - param.i_csp = X264_CSP_I444; - mod->mux->bih->biSizeImage = width * height * 3; - break; - case IMGFMT_YVYU: - param.i_csp = X264_CSP_YUYV; - mod->mux->bih->biSizeImage = width * height * 3; - break; - case IMGFMT_RGB: - param.i_csp = X264_CSP_RGB; - mod->mux->bih->biSizeImage = width * height * 3; - break; - case IMGFMT_BGR: - param.i_csp = X264_CSP_BGR; - mod->mux->bih->biSizeImage = width * height * 3; - break; - case IMGFMT_BGR32: - param.i_csp = X264_CSP_BGRA; - mod->mux->bih->biSizeImage = width * height * 4; break; default: mp_msg(MSGT_MENCODER, MSGL_ERR, "Wrong colorspace.\n");