Skip to content

Commit b49b21d

Browse files
committed
Adapt endpoint muxer tests to junit 5 assertion order and restore av_packet_free import
1 parent 9ba6897 commit b49b21d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/io/antmedia/test/MuxerUnitTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
import static org.bytedeco.ffmpeg.global.avcodec.AV_PKT_FLAG_KEY;
156156
import static org.bytedeco.ffmpeg.global.avcodec.av_init_packet;
157157
import static org.bytedeco.ffmpeg.global.avcodec.av_packet_alloc;
158+
import static org.bytedeco.ffmpeg.global.avcodec.av_packet_free;
158159
import static org.bytedeco.ffmpeg.global.avcodec.av_packet_unref;
159160
import static org.bytedeco.ffmpeg.global.avformat.AVFMT_NOFILE;
160161
import static org.bytedeco.ffmpeg.global.avformat.av_read_frame;
@@ -6730,7 +6731,7 @@ public void testFullQueueDropsOldestGop() throws Exception {
67306731

67316732
assertEquals(capacity - gop + 1, queue.size());
67326733
boolean headIsKeyFrame = (queue.peek().flags() & AV_PKT_FLAG_KEY) != 0;
6733-
assertTrue("head must be a keyframe after a GOP drop", headIsKeyFrame);
6734+
assertTrue(headIsKeyFrame, "head must be a keyframe after a GOP drop");
67346735

67356736
av_packet_free(src);
67366737
drainAndFree(queue);

0 commit comments

Comments
 (0)