Skip to content

Commit

Permalink
Merge pull request ireader#306 from Dw9/master-1
Browse files Browse the repository at this point in the history
Update rtp-dump-test.cpp
  • Loading branch information
ireader authored Aug 30, 2023
2 parents 47df506 + 725a2ea commit e05b37b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions librtp/test/rtp-dump-test.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#define RTP_DEMUXER 0

#if RTP_DEMUXER
#include "rtp-dump.h"
#include "rtp-demuxer.h"
#else
#include "rtsp-demuxer.h"
#endif
#include "avpkt2bs.h"
#include <stdio.h>
#include <assert.h>
#include <stdint.h>
#include <inttypes.h>

#define RTP_DEMUXER 0


struct rtp_dump_test_t
{
Expand Down Expand Up @@ -63,7 +68,7 @@ void rtp_dump_test(const char* file)

dump = rtpdump_open(file, 0);
#if RTP_DEMUXER
ctx.demuxer = rtp_demuxer_create(0, 100, 90000, 100, "MP2P", rtp_onpacket, &ctx);
ctx.demuxer = rtp_demuxer_create(100, 90000, 100, "MP2P", rtp_onpacket, &ctx);
#else
avpkt2bs_create(&ctx.bs);
ctx.demuxer = rtsp_demuxer_create(0, 100, rtsp_onpacket, &ctx);
Expand Down

0 comments on commit e05b37b

Please sign in to comment.