Le jeudi 25 septembre 2014, 11:04:36 Luca Barbato a écrit :
> On 25/09/14 10:58, Rémi Denis-Courmont wrote:
> > Hello,
> > 
> > In H.264 and MPEG-1/2, the decoded pixel format can change mid-stream.
> > Yet, get_format() is only called if the new pixel format is compatible
> > with hardware acceleration. This triggers undefined behaviour in
> > hwaccel-enabled applications when hardware acceleration is first
> > enabled, and then the new pixel format changes to unaccelerated.
> > 
> > Forcing the callback to be called lets the application detect the change
> > and disable hardware acceleration cleanly.
> > 
> > (Note: The other get_format()-using codecs are not patched as they do
> > not seem to allow mid-stream change of the pixel format.)
> 
> The set seems fine to me.

Hmm? Just to be clear, unlike my other hwaccel patches, I consider this is a 
bugfix. Existing applications potentially crash right now without it.

Of course someone could argue the application are buggy. But I would find that 
very contrived.

-- 
Rémi Denis-Courmont
http://www.remlab.net/

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to