Commit 35236fd7 authored by Steven Liu's avatar Steven Liu

avformat/rtmpptoto: add logging context to log

Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 5db50dbf
...@@ -2386,7 +2386,7 @@ static int handle_metadata(RTMPContext *rt, RTMPPacket *pkt) ...@@ -2386,7 +2386,7 @@ static int handle_metadata(RTMPContext *rt, RTMPPacket *pkt)
next += size + 3 + 4; next += size + 3 + 4;
} }
if (p != rt->flv_data + rt->flv_size) { if (p != rt->flv_data + rt->flv_size) {
av_log(NULL, AV_LOG_WARNING, "Incomplete flv packets in " av_log(rt, AV_LOG_WARNING, "Incomplete flv packets in "
"RTMP_PT_METADATA packet\n"); "RTMP_PT_METADATA packet\n");
rt->flv_size = p - rt->flv_data; rt->flv_size = p - rt->flv_data;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment