package com.foxx.androidcast.media;

/*********************************************************************
 * EncodedStreamProbeTest.java
 * Created at: Sat 16 May 2026 18:50:36 +0200
 * Updated at: Wed 20 May 2026 15:17:13 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
 * Commit: 5d8e82d2e60a21fff3138d2a394ee4e8b4c6dcb8
 * class EncodedStreamProbeTest
 * Contributors:
 *    - Anton Afanasyeu <a.afanasieff@gmail.com> (2 commits, 23 lines)
 *    - Cursor Agent (project assistant)
 * Digest: SHA256	8bce9a96f3cede56853b498439c6e22891c7d01f9419558342f37d515c596f35
**********************************************************************/
import static org.junit.Assert.assertTrue;

import android.media.MediaFormat;

import org.junit.Test;

public class EncodedStreamProbeTest {
    @Test
    public void hevcKeyframeReportsNalType() {
        byte[] vps = {0, 0, 0, 1, 0x40, 0x01, 0x0c, 0x01};
        String desc = EncodedStreamProbe.describeKeyframe(MediaFormat.MIMETYPE_VIDEO_HEVC, vps);
        assertTrue(desc.contains("HEVC"));
    }
}
