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

Steve Lhomme robux4 at videolabs.io
Tue Apr 21 13:00:12 CEST 2015


On Tue, Apr 21, 2015 at 12:03 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le 2015-04-21 12:59, Steve Lhomme a écrit :
>>
>> 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.
>
>
> If you think that libavcodec should not call get_format(), then fix
> libavcodec.

vlc_va_Setup() is called for every frame that we read from the
decoder. I don't think the issue is in libavcodec.

http://git.videolan.org/?p=vlc.git;a=blob;f=modules/codec/avcodec/video.c;h=381fe62a4a0c2e1efa4553b1b6b5a07537ba8cc5;hb=HEAD#l969

This is where we have to change the hw acceleration setup if anything
incompatible changed. Silently if possible.



More information about the vlc-devel mailing list