[Ffmpeg-devel] [PATCH] AVISynth support for some MS DIB formats
Steve Lhomme
slhomme
Thu Sep 28 14:17:51 CEST 2006
Steve Lhomme wrote:
> 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.
OK, it's better (more general). Here is the patch.
Steve
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg-formats.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060928/106b4524/attachment.txt>
More information about the ffmpeg-devel
mailing list