[FFmpeg-cvslog] avcodec/hevc_ps: Add context to av_log() call

Michael Niedermayer git at videolan.org
Sat Dec 6 15:39:22 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec  6 15:30:41 2014 +0100| [1adc1b97e1b8d2a40888db3ce1afefb0750e83c5] | committer: Michael Niedermayer

avcodec/hevc_ps: Add context to av_log() call

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1adc1b97e1b8d2a40888db3ce1afefb0750e83c5
---

 libavcodec/hevc_ps.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 6b5e13f..1337286 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -952,7 +952,7 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
     if (sps->long_term_ref_pics_present_flag) {
         sps->num_long_term_ref_pics_sps = get_ue_golomb_long(gb);
         if (sps->num_long_term_ref_pics_sps > 31U) {
-            av_log(0, AV_LOG_ERROR, "num_long_term_ref_pics_sps %d is out of range.\n",
+            av_log(s->avctx, AV_LOG_ERROR, "num_long_term_ref_pics_sps %d is out of range.\n",
                    sps->num_long_term_ref_pics_sps);
             goto err;
         }



More information about the ffmpeg-cvslog mailing list