aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-08-15 18:14:12 -0700
committerAlex Converse <alex.converse@gmail.com>2011-08-16 11:09:39 -0700
commitd8b999e2d0736751bb25edc3aa0651cdbf3cbf41 (patch)
tree03afed60eef21777c89db051745c01b822226f5a /libavformat
parenteb97dbb05a990266b04830ea8e179e0428656b98 (diff)
downloadffmpeg-d8b999e2d0736751bb25edc3aa0651cdbf3cbf41.tar.gz
mpegts: log into an AVFormatContext rather than MpegTSContext.
MpegTSContext's AVClass member can be NULL.
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 f22edec81a..fa5bd4c5a1 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -628,7 +628,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);
@@ -1293,7 +1293,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;