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:
reimar 2007-01-21 10:10:07 +00:00
parent 36a3d4ef74
commit cb47a72a44
2 changed files with 3 additions and 1 deletions

View File

@ -98,6 +98,8 @@ typedef struct muxbuf_t {
unsigned int flags;
} muxbuf_t;
extern char *force_fourcc;
muxer_t *muxer_new_muxer(int type,stream_t *stream);
#define muxer_new_stream(muxer,a) muxer->cont_new_stream(muxer,a)
#define muxer_stream_fix_parameters(muxer, a) muxer->fix_stream_parameters(a)

View File

@ -239,7 +239,7 @@ static void fix_parameters(muxer_stream_t *stream)
else if(stream->type == MUXER_TYPE_VIDEO)
{
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;
mp_msg(MSGT_MUXER, MSGL_INFO, "VIDEO CODEC ID: %d\n", ctx->codec_id);
ctx->width = stream->bih->biWidth;