vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Dec 17 18:17:47 2018 +0100| [e4701cb67169abbc92a10ec1f7e41198f4b18f71] | committer: Francois Cartegnie
codec: dav1d: don't send null data for drain > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4701cb67169abbc92a10ec1f7e41198f4b18f71 --- modules/codec/dav1d.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/codec/dav1d.c b/modules/codec/dav1d.c index 363e9e7a78..c47f1d1575 100644 --- a/modules/codec/dav1d.c +++ b/modules/codec/dav1d.c @@ -213,12 +213,15 @@ static int Decode(decoder_t *dec, block_t *block) int i_ret = VLCDEC_SUCCESS; int res; do { - res = dav1d_send_data(p_sys->c, p_data); - if (res < 0 && res != -EAGAIN) + if( p_data ) { - msg_Err(dec, "Decoder feed error %d!", res); - i_ret = VLC_EGENERIC; - break; + res = dav1d_send_data(p_sys->c, p_data); + if (res < 0 && res != -EAGAIN) + { + msg_Err(dec, "Decoder feed error %d!", res); + i_ret = VLC_EGENERIC; + break; + } } res = dav1d_get_picture(p_sys->c, &img); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
