Mercurial > mplayer.hg
changeset 23309:af2f1099072f
Pass imgfmt from lavc encoder to lavf muxer (this is needed for dv).
author | corey |
---|---|
date | Thu, 17 May 2007 00:16:51 +0000 |
parents | f63408f61f0f |
children | dcfabfaa5c69 |
files | libmpcodecs/ve_lavc.c libmpdemux/muxer_lavf.c |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c Thu May 17 00:15:08 2007 +0000 +++ b/libmpcodecs/ve_lavc.c Thu May 17 00:16:51 2007 +0000 @@ -566,6 +566,7 @@ lavc_venc_context->b_sensitivity = lavc_param_b_sensitivity; lavc_venc_context->level = lavc_param_level; + mux_v->imgfmt = lavc_param_format; switch(lavc_param_format) { case IMGFMT_YV12:
--- a/libmpdemux/muxer_lavf.c Thu May 17 00:15:08 2007 +0000 +++ b/libmpdemux/muxer_lavf.c Thu May 17 00:16:51 2007 +0000 @@ -240,6 +240,7 @@ if(ctx->codec_id <= 0 || force_fourcc) ctx->codec_tag= stream->bih->biCompression; mp_msg(MSGT_MUXER, MSGL_INFO, "VIDEO CODEC ID: %d\n", ctx->codec_id); + ctx->pix_fmt = imgfmt2pixfmt(stream->imgfmt); ctx->width = stream->bih->biWidth; ctx->height = stream->bih->biHeight; ctx->bit_rate = 800000;