summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-08-09 19:14:12 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-08-10 20:39:50 +0200
commit03990448058e5aee3394a79259e215a554bbbaec (patch)
tree3b20182d19a8695d0211ba9ff37e1e3384204e52 /libavformat
parent9f06c1c61e876e930753da200bfe835817e30a53 (diff)
Always pass a AVFormatContext to av_log.
This is consistent, allows custom handlers to print more info (since they probably know about the AVFormatContext class but not a demuxer-specific one) and also avoids issues due to the class pointer being NULL for non-raw mpegts. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5daffbb521..16e7645652 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -640,7 +640,7 @@ static void new_pes_packet(PESContext *pes, AVPacket *pkt)
if(pes->total_size != MAX_PES_PAYLOAD &&
pes->pes_header_size + pes->data_index != pes->total_size + 6) {
- av_log(pes->ts, AV_LOG_WARNING, "PES packet size mismatch\n");
+ av_log(pes->stream, AV_LOG_WARNING, "PES packet size mismatch\n");
pes->flags |= AV_PKT_FLAG_CORRUPT;
}
memset(pkt->data+pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
@@ -1314,7 +1314,7 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet)
tss->last_cc = cc;
if (!cc_ok) {
- av_log(ts, AV_LOG_WARNING, "Continuity Check Failed\n");
+ av_log(ts->stream, AV_LOG_WARNING, "Continuity Check Failed\n");
if(tss->type == MPEGTS_PES) {
PESContext *pc = tss->u.pes_filter.opaque;
pc->flags |= AV_PKT_FLAG_CORRUPT;