[vlc-commits] avcodec: log the error code returned by the encoder

Steve Lhomme git at videolan.org
Fri Apr 6 11:25:12 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Oct 18 11:41:06 2017 +0200| [a410f21b844d102d641f8190d7ddaa63219c3ca6] | committer: Jean-Baptiste Kempf

avcodec: log the error code returned by the encoder

(cherry picked from commit b36cb077f9f9f5d710d9ab48e8b0844a705ae3f0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a410f21b844d102d641f8190d7ddaa63219c3ca6
---

 modules/codec/avcodec/encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 74c5dc3144..d09a5b01f0 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -1138,7 +1138,7 @@ static block_t *encode_avframe( encoder_t *p_enc, encoder_sys_t *p_sys, AVFrame
     int ret = avcodec_send_frame( p_sys->p_context, frame );
     if( frame && ret != 0 && ret != AVERROR(EAGAIN) )
     {
-        msg_Warn( p_enc, "cannot send one frame to encoder");
+        msg_Warn( p_enc, "cannot send one frame to encoder %d", ret );
         return NULL;
     }
     ret = avcodec_receive_packet( p_sys->p_context, &av_pkt );



More information about the vlc-commits mailing list