[Ffmpeg-devel] [PATCH] AVISynth support for some MS DIB formats

Steve Lhomme slhomme
Wed Sep 27 23:05:04 CEST 2006


Michael Niedermayer wrote:
>> Index: avisynth.c
>> ===================================================================
>> --- avisynth.c	(revision 6352)
>> +++ avisynth.c	(working copy)
>> @@ -95,6 +95,7 @@
>>                    stream->chunck_size = stream->chunck_samples * wvfmt.nChannels * wvfmt.wBitsPerSample / 8;
>>  
>>                    st->codec->codec_id = wav_codec_get_id(wvfmt.wFormatTag, st->codec->bits_per_sample);
>> +                  st->codec->codec_tag = stream->info.fccHandler;
> 
> this looks wrong stream->info.fccHandler should be st->codec->stream_codec_tag
> and wvfmt.wFormatTag should be codec_tag
> 
> 
>>                  }
>>                else if (stream->info.fccType == streamtypeVIDEO)
>>                  {
>> @@ -117,7 +118,27 @@
>>  
>>                    st->codec->bits_per_sample = stream->info.dwSampleSize * 8;
>>                    st->codec->bit_rate = (uint64_t)stream->info.dwSampleSize * (uint64_t)stream->info.dwRate * 8 / (uint64_t)stream->info.dwScale;
>> -                  st->codec->codec_id = codec_get_id(codec_bmp_tags, stream->info.fccHandler);
> 
> same here, it should be imgfmt.bmiHeader.biCompression not 
> stream->info.fccHandler id also guess thats why the code didnt work though
> iam just guessing, what happens if you change these?

I'll give this a try. I'll keep you updated.

Steve




More information about the ffmpeg-devel mailing list