[Libav-user] Building with MSVC toolchain resulting in seeking problem?

Hendrik Leppkes h.leppkes at gmail.com
Tue Mar 12 16:36:13 CET 2013


On Tue, Mar 12, 2013 at 4:33 PM, John Orr <john.orr at scala.com> wrote:
> On 3/12/2013 11:14 AM, Hendrik Leppkes wrote:
>>
>> On Tue, Mar 12, 2013 at 4:10 PM, Carl Eugen Hoyos <cehoyos at ag.or.at>
>> wrote:
>>>
>>> John Orr <john.orr at ...> writes:
>>>
>>>>       if (whence == AVSEEK_SIZE) {
>>>> #ifndef _MSC_VER
>>>>           struct stat st;
>>>>
>>>>           ret = fstat(c->fd, &st);
>>>> #else
>
>
> ...
>
>
>>>> Perhaps you could (fix the whitespace and) send a patch
>>>> to ffmpeg-devel or set up a git clone to allow merging?
>>>>
>> If you send a patch, then first look at libavformat/os_support.h, it
>> already has defines for mingw to map these functions, and should
>> probably be enhanced there, instead of cluttering file.c with #ifdefs.
>
>
> I'll be glad to try to fix it properly.  Bear in mind that I'm not so well
> versed in making patches.
>
> --Johno
>

No worries, the fix (in theory) is so trivial that I'll simply send a
patch to ffmpeg-devel in a few minutes, if you could test it out to
confirm, that would be great.


More information about the Libav-user mailing list