Don't let finalize_packet() touch pkt->stream_index. Instead, let individual
[ffmpeg.git] / tools / pktdumper.c
index 04488ca..781a3c2 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <avformat.h>
 #include <limits.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include "libavformat/avformat.h"
 
 #define PKTFILESUFF "_%08"PRId64"_%02d_%010"PRId64"_%06d_%c.bin"
 
+#undef strcat
+
 static int usage(int ret)
 {
     fprintf(stderr, "dump (up to maxpkts) AVPackets as they are demuxed by libavformat.\n");