From c3e15f7b39aac2012f09ee4ca86d2bc674ffdbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st> Date: Sat, 20 Oct 2012 23:29:15 +0300 Subject: [PATCH] rtpdec: Don't pass a non-AVClass pointer as log context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The log context is assumed to start with an AVClass pointer. Signed-off-by: Martin Storsjö <martin@martin.st> --- libavformat/rtpdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index dac367dd860..9a1c4972caf 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -785,7 +785,7 @@ int ff_parse_fmtp(AVStream *stream, PayloadContext *data, const char *p, int value_size = strlen(p) + 1; if (!(value = av_malloc(value_size))) { - av_log(stream, AV_LOG_ERROR, "Failed to allocate data for FMTP."); + av_log(NULL, AV_LOG_ERROR, "Failed to allocate data for FMTP."); return AVERROR(ENOMEM); } -- GitLab