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

Steve Lhomme git at videolan.org
Wed Apr 4 18:27:50 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Oct 18 11:41:06 2017 +0200| [b36cb077f9f9f5d710d9ab48e8b0844a705ae3f0] | committer: Steve Lhomme

avcodec: log the error code returned by the encoder

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

 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 09a8864985..c244b3b728 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