mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
Pass imgfmt from lavc encoder to lavf muxer (this is needed for dv).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23327 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
26e13fe9af
commit
f58a3d0fda
@ -566,6 +566,7 @@ static int config(struct vf_instance_s* vf,
|
||||
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:
|
||||
|
@ -240,6 +240,7 @@ static void fix_parameters(muxer_stream_t *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;
|
||||
|
Loading…
Reference in New Issue
Block a user