[vlc-devel] [PATCH] avcodec: reuse hw acceleration if possible

Steve Lhomme robux4 at videolabs.io
Tue Apr 21 11:59:33 CEST 2015


On Tue, Apr 21, 2015 at 11:57 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le 2015-04-21 12:44, Steve Lhomme a écrit :
>>
>> On Tue, Apr 21, 2015 at 11:38 AM, Rémi Denis-Courmont
>> <remi at remlab.net> wrote:
>>>
>>> Le 2015-04-21 12:32, Steve Lhomme a écrit :
>>>>
>>>>
>>>> Checking the profile should be added to both,
>>>> regardless of this patch.
>>>
>>>
>>>
>>> I must disagree.
>>
>>
>>
>> Currently if vlc_va_Setup() is called and the dimensions are the same,
>> they just set their output values and return.
>
>
> vlc_va_Setup() is working around a bug in libavcodec, whereby the dimension
> of the pictures were not provided in get_format(). I am not even sure if the
> bug still exists. Indeed, if vlc_va_Setup() fails, you are utterly _screwed_
> - you will not get any picture buffers. vlc_va_Setup() is a bug in itself.


Why is this called when seeking ?

And since it's called during seeking, it would be good not to restart
the whole decoder just because avcodec is going to flush its buffers.



More information about the vlc-devel mailing list