[FFmpeg-devel] [PATCH] Try to make new VDPAU usable by adding context to callback.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Aug 9 08:57:53 CEST 2013


>>>> How would I even be able to handle the return value of the render function in general, no matter the cause of error? (if you don't care about losing more frames than necessary I guess you coukd handle preemption outside the decode loop, but that seems at least suboptimal).
>>>> lavc ignores the return value, and any wrapper would have nowhere to store it.
>>> 
>>> Maybe lavc should check the return value, and return it from the
>>> libavcodec decoding function?
>> 
>> Remapping all possible VDPAU errors to FFmpeg ones? That's going to be
>> fun...
> 
> Well, OK, but maybe at least render2 should be able to return a ffmpeg
> error code?

That is why it has an int as return value actually :-).
Integrating it so that libavcodec actually returns that is missing though.


More information about the ffmpeg-devel mailing list