From 89ac55ada9a7c77ef62e779edd90f45f3e32b837 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Wed, 14 Jan 2009 23:53:31 +0000 Subject: [PATCH] consider other codecs packets contain only one access unit, not just audio Originally committed as revision 16611 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpegtsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 8f15f5b5b5..aa6334633c 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -720,7 +720,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) break; } } - } else if (st->codec->codec_type == CODEC_TYPE_AUDIO) { + } else { access_unit_index = pkt->data; }