<html><head></head><body>Hi,<br><br>Ok given that it does not change the current behaviour. But I don't think picture_NewFromFormat() will be a suitable default. In general allocating and freeing a picture every time is too slow, so we will need some sort of pool per decoder.<br><br><div class="gmail_quote">Le 25 juin 2019 14:53:12 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Create a picture_t on the fly by default.<hr> src/input/decoder_helpers.c | 2 ++<br> 1 file changed, 2 insertions(+)<br><br>diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c<br>index 1c4593db30..7384e2bda0 100644<br>--- a/src/input/decoder_helpers.c<br>+++ b/src/input/decoder_helpers.c<br>@@ -88,6 +88,8 @@ int decoder_UpdateVideoFormat( decoder_t *dec )<br> picture_t *decoder_NewPicture( decoder_t *dec )<br> {<br> vlc_assert( dec->fmt_in.i_cat == VIDEO_ES && dec->cbs != NULL );<br>+ if (dec->cbs->video.buffer_new == NULL)<br>+ return picture_NewFromFormat( &dec->fmt_out.video );<br> return dec->cbs->video.buffer_new( dec );<br> }<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>