diff options
author | Martin Storsjö <martin@martin.st> | 2012-09-04 14:45:00 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-05 16:01:40 +0300 |
commit | 6d65496990dcac551f60668c2418a50a3111c86c (patch) | |
tree | ebf3d225b877e8732510be3a503c85fecf8d1768 | |
parent | 5e997688f8801bb89c773f368237627d957fa520 (diff) | |
download | ffmpeg-6d65496990dcac551f60668c2418a50a3111c86c.tar.gz |
parser: Don't use pc as context for av_dlog
The ParserContext class doesn't have an AVClass, required for
using it as a logging class.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavcodec/parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 29904f9a33..dd2d836615 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -225,9 +225,9 @@ void av_parser_close(AVCodecParserContext *s) int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size) { if(pc->overread){ - av_dlog(pc, "overread %d, state:%X next:%d index:%d o_index:%d\n", + av_dlog(NULL, "overread %d, state:%X next:%d index:%d o_index:%d\n", pc->overread, pc->state, next, pc->index, pc->overread_index); - av_dlog(pc, "%X %X %X %X\n", (*buf)[0], (*buf)[1], (*buf)[2], (*buf)[3]); + av_dlog(NULL, "%X %X %X %X\n", (*buf)[0], (*buf)[1], (*buf)[2], (*buf)[3]); } /* Copy overread bytes from last frame into buffer. */ @@ -277,9 +277,9 @@ int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_s } if(pc->overread){ - av_dlog(pc, "overread %d, state:%X next:%d index:%d o_index:%d\n", + av_dlog(NULL, "overread %d, state:%X next:%d index:%d o_index:%d\n", pc->overread, pc->state, next, pc->index, pc->overread_index); - av_dlog(pc, "%X %X %X %X\n", (*buf)[0], (*buf)[1],(*buf)[2],(*buf)[3]); + av_dlog(NULL, "%X %X %X %X\n", (*buf)[0], (*buf)[1],(*buf)[2],(*buf)[3]); } return 0; |