[MPlayer-cvslog] r23327 - in trunk: libmpcodecs/ve_lavc.c libmpdemux/muxer_lavf.c
corey
subversion at mplayerhq.hu
Thu May 17 02:16:51 CEST 2007
Author: corey
Date: Thu May 17 02:16:51 2007
New Revision: 23327
Log:
Pass imgfmt from lavc encoder to lavf muxer (this is needed for dv).
Modified:
trunk/libmpcodecs/ve_lavc.c
trunk/libmpdemux/muxer_lavf.c
Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c (original)
+++ trunk/libmpcodecs/ve_lavc.c Thu May 17 02:16:51 2007
@@ -566,6 +566,7 @@ static int config(struct vf_instance_s*
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:
Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c (original)
+++ trunk/libmpdemux/muxer_lavf.c Thu May 17 02:16:51 2007
@@ -240,6 +240,7 @@ static void fix_parameters(muxer_stream_
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;
More information about the MPlayer-cvslog
mailing list