FFmpeg
Loading...
Searching...
No Matches
api-skip-samples-test.c File Reference
#include <stdio.h>
#include <string.h>
#include "libavcodec/avcodec.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/macros.h"

Go to the source code of this file.

Macros

#define FRAME_SAMPLES   1000
 Decode one packet carrying AV_PKT_DATA_SKIP_SAMPLES and print how many samples are output, for skips at the start and padding at the end of the frame, alone, together and overlapping.
 

Functions

static int decoded_samples (uint32_t skip, uint32_t discard)
 
int main (void)
 

Macro Definition Documentation

◆ FRAME_SAMPLES

#define FRAME_SAMPLES   1000

Decode one packet carrying AV_PKT_DATA_SKIP_SAMPLES and print how many samples are output, for skips at the start and padding at the end of the frame, alone, together and overlapping.

Definition at line 33 of file api-skip-samples-test.c.

Function Documentation

◆ decoded_samples()

static int decoded_samples ( uint32_t skip,
uint32_t discard )
static

Definition at line 35 of file api-skip-samples-test.c.

Referenced by decode_frame(), main(), and opus_decode_packet().

◆ main()

int main ( void )

Definition at line 92 of file api-skip-samples-test.c.