summaryrefslogtreecommitdiff
path: root/libavcodec/libxvid_rc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-12-08 10:21:27 +0100
committerDiego Biurrun <diego@biurrun.de>2016-11-11 10:17:07 +0100
commite5e8a26dcf6d572e841a7a191e4c96524367e3f9 (patch)
treeef7750300758623b857c003e10add949dd9f9781 /libavcodec/libxvid_rc.c
parent12db2832e41aa71b5903ef7fa5c59c5473ded2c5 (diff)
downloadffmpeg-e5e8a26dcf6d572e841a7a191e4c96524367e3f9.tar.gz
libxvid: Use proper context in av_log() calls
Diffstat (limited to 'libavcodec/libxvid_rc.c')
-rw-r--r--libavcodec/libxvid_rc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c
index 91302832e0..eddbbe8c65 100644
--- a/libavcodec/libxvid_rc.c
+++ b/libavcodec/libxvid_rc.c
@@ -68,7 +68,7 @@ av_cold int ff_xvid_rate_control_init(MpegEncContext *s)
fd = ff_tempfile("xvidrc.", &tmp_name);
if (fd < 0) {
- av_log(NULL, AV_LOG_ERROR, "Can't create temporary pass2 file.\n");
+ av_log(s, AV_LOG_ERROR, "Cannot create temporary pass2 file.\n");
return fd;
}
@@ -106,7 +106,7 @@ av_cold int ff_xvid_rate_control_init(MpegEncContext *s)
if (xvid_plugin_2pass2(NULL, XVID_PLG_CREATE, &xvid_plg_create,
&s->rc_context.non_lavc_opaque) < 0) {
- av_log(NULL, AV_LOG_ERROR, "xvid_plugin_2pass2 failed\n");
+ av_log(s, AV_LOG_ERROR, "xvid_plugin_2pass2 failed\n");
return -1;
}
return 0;
@@ -141,7 +141,7 @@ float ff_xvid_rate_estimate_qscale(MpegEncContext *s, int dry_run)
xvid_plg_data.type = s->last_pict_type;
if (xvid_plugin_2pass2(s->rc_context.non_lavc_opaque,
XVID_PLG_AFTER, &xvid_plg_data, NULL)) {
- av_log(s->avctx, AV_LOG_ERROR,
+ av_log(s, AV_LOG_ERROR,
"xvid_plugin_2pass2(handle, XVID_PLG_AFTER, ...) FAILED\n");
return -1;
}
@@ -151,7 +151,7 @@ float ff_xvid_rate_estimate_qscale(MpegEncContext *s, int dry_run)
xvid_plg_data.quant = 0;
if (xvid_plugin_2pass2(s->rc_context.non_lavc_opaque,
XVID_PLG_BEFORE, &xvid_plg_data, NULL)) {
- av_log(s->avctx, AV_LOG_ERROR,
+ av_log(s, AV_LOG_ERROR,
"xvid_plugin_2pass2(handle, XVID_PLG_BEFORE, ...) FAILED\n");
return -1;
}