mirror of https://github.com/mpv-player/mpv
support -ffourcc with -of lavf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21978 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
36a3d4ef74
commit
cb47a72a44
|
@ -98,6 +98,8 @@ typedef struct muxbuf_t {
|
||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
} muxbuf_t;
|
} muxbuf_t;
|
||||||
|
|
||||||
|
extern char *force_fourcc;
|
||||||
|
|
||||||
muxer_t *muxer_new_muxer(int type,stream_t *stream);
|
muxer_t *muxer_new_muxer(int type,stream_t *stream);
|
||||||
#define muxer_new_stream(muxer,a) muxer->cont_new_stream(muxer,a)
|
#define muxer_new_stream(muxer,a) muxer->cont_new_stream(muxer,a)
|
||||||
#define muxer_stream_fix_parameters(muxer, a) muxer->fix_stream_parameters(a)
|
#define muxer_stream_fix_parameters(muxer, a) muxer->fix_stream_parameters(a)
|
||||||
|
|
|
@ -239,7 +239,7 @@ static void fix_parameters(muxer_stream_t *stream)
|
||||||
else if(stream->type == MUXER_TYPE_VIDEO)
|
else if(stream->type == MUXER_TYPE_VIDEO)
|
||||||
{
|
{
|
||||||
ctx->codec_id = codec_get_bmp_id(stream->bih->biCompression);
|
ctx->codec_id = codec_get_bmp_id(stream->bih->biCompression);
|
||||||
if(ctx->codec_id <= 0)
|
if(ctx->codec_id <= 0 || force_fourcc)
|
||||||
ctx->codec_tag= stream->bih->biCompression;
|
ctx->codec_tag= stream->bih->biCompression;
|
||||||
mp_msg(MSGT_MUXER, MSGL_INFO, "VIDEO CODEC ID: %d\n", ctx->codec_id);
|
mp_msg(MSGT_MUXER, MSGL_INFO, "VIDEO CODEC ID: %d\n", ctx->codec_id);
|
||||||
ctx->width = stream->bih->biWidth;
|
ctx->width = stream->bih->biWidth;
|
||||||
|
|
Loading…
Reference in New Issue