consider other codecs packets contain only one access unit, not just audio
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 14 Jan 2009 23:53:31 +0000 (23:53 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 14 Jan 2009 23:53:31 +0000 (23:53 +0000)
Originally committed as revision 16611 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegtsenc.c

index 8f15f5b..aa63346 100644 (file)
@@ -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;
     }