33 #define MAX_TST_PACKETS 128 34 #define SLEEPTIME_50_MS 50000 35 #define SLEEPTIME_10_MS 10000 117 printf(
"pts seen: ");
123 #define OFFSET(x) offsetof(FailingMuxerContext, x) 125 {
"write_header_ret",
"write_header() return value",
OFFSET(write_header_ret),
127 {
"write_trailer_ret",
"write_trailer() return value",
OFFSET(write_trailer_ret),
128 AV_OPT_TYPE_INT, {.i64 = 0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM},
129 {
"print_deinit_summary",
"print summary when deinitializing muxer",
OFFSET(print_deinit_summary),
149 .priv_class = &failing_muxer_class,
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
AVIOInterruptCB interrupt_callback
Custom interrupt callbacks for the I/O layer.
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
int av_usleep(unsigned usec)
Sleep for a period of time.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
int pts_written[MAX_TST_PACKETS]
static const AVOption options[]
static const AVClass failing_muxer_class
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
static int failing_write_trailer(AVFormatContext *avf)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
simple assert() macros that are a bit more flexible than ISO C assert().
static int failing_write_header(AVFormatContext *avf)
static int write_trailer(AVFormatContext *s1)
#define AVERROR_EXIT
Immediate exit was requested; the called function should not be restarted.
int ff_check_interrupt(AVIOInterruptCB *cb)
Check if the user has requested to interrupt a blocking function associated with cb.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
static int failing_write_packet(AVFormatContext *avf, AVPacket *pkt)
Describe the class of an AVClass context structure.
static void failing_deinit(AVFormatContext *avf)
AVOutputFormat ff_fifo_test_muxer
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
unbuffered private I/O API
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...