Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2019-09-28 05:21:11 +0300
committerJun Zhao <barryjzhao@tencent.com>2019-09-30 05:06:21 +0300
commit12e6057fb005d91b91d706b531f744737208d527 (patch)
tree3ffce9ddd77ef9767987545ea3b9e1ad22b77038 /libavformat/nutdec.c
parent79597639cb0a0bc7dac063876f0252be0f56d592 (diff)
lavf/nutdec: add logging context to log
Add logging context to log, it's will help debuging. Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 979cb9a031..2b5adcb111 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -1275,13 +1275,13 @@ static int read_seek(AVFormatContext *s, int stream_index,
av_assert0(sp);
pos2 = sp->back_ptr - 15;
}
- av_log(NULL, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos2);
+ av_log(s, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos2);
pos = find_startcode(s->pb, SYNCPOINT_STARTCODE, pos2);
avio_seek(s->pb, pos, SEEK_SET);
nut->last_syncpoint_pos = pos;
- av_log(NULL, AV_LOG_DEBUG, "SP: %"PRId64"\n", pos);
+ av_log(s, AV_LOG_DEBUG, "SP: %"PRId64"\n", pos);
if (pos2 > pos || pos2 + 15 < pos)
- av_log(NULL, AV_LOG_ERROR, "no syncpoint at backptr pos\n");
+ av_log(s, AV_LOG_ERROR, "no syncpoint at backptr pos\n");
for (i = 0; i < s->nb_streams; i++)
nut->stream[i].skip_until_key_frame = 1;