Module: libav
Branch: master
Commit: c3e15f7b39aac2012f09ee4ca86d2bc674ffdbd4

Author:    Martin Storsjö <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Sat Oct 20 23:29:15 2012 +0300

rtpdec: Don't pass a non-AVClass pointer as log context

The log context is assumed to start with an AVClass pointer.

Signed-off-by: Martin Storsjö <[email protected]>

---

 libavformat/rtpdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index dac367d..9a1c497 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);
     }
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to