[FFmpeg-devel] [PATCH] libavformat/aviobuf.c: don't treat 0 from read_packet as EOF

Daniel Kučera daniel.kucera at gmail.com
Fri Jun 2 16:43:36 EEST 2017


2017-06-02 15:08 GMT+02:00 Daniel Kučera <daniel.kucera at gmail.com>:
> 2017-06-02 15:02 GMT+02:00 Nicolas George <george at nsup.org>:
>> Le quartidi 14 prairial, an CCXXV, Daniel Kučera a écrit :
>>> Now I'm trying to pass fate. I've fixed some problems but don't have
>>> an idea why it won't pass following test. Does anyone have idea?
>>
>> I suspect you need to fix lavf/file.c to actually return AVERROR_EOF.
>>

problem is that cache_seek is calling ffurl_seek, but
h->prot->url_seek is zero so it returns AVERROR(ENOSYS)

I'm little bit lost...

Breakpoint 3, cache_seek (h=0x555556ea08e0, pos=0, whence=65536) at
libavformat/cache.c:222
222    {
(gdb) break ffurl_seek
Note: breakpoint 2 also set at pc 0x55555577ccd0.
Breakpoint 4 at 0x55555577ccd0: file libavformat/avio.c, line 438.
(gdb) c
Continuing.

Breakpoint 2, ffurl_seek (h=0x555556ea0aa0, pos=0, whence=65536) at
libavformat/avio.c:438
438        if (!h->prot->url_seek)
(gdb) p h->prot->url_seek
$2 = (int64_t (*)(URLContext *, int64_t, int)) 0x0



S pozdravom / Best regards
Daniel Kucera.


More information about the ffmpeg-devel mailing list