32 #define RAW_PACKET_SIZE 1024
49 }
else if (ret < size) {
105 #define OFFSET(x) offsetof(FFRawVideoDemuxerContext, x)
106 #define DEC AV_OPT_FLAG_DECODING_PARAM
112 #if CONFIG_LATM_DEMUXER
114 #define LOAS_SYNC_WORD 0x2b7
118 int max_frames = 0, first_frames = 0;
127 for (; buf < end; buf = buf2 + 1) {
130 for (frames = 0; buf2 < end; frames++) {
131 uint32_t header =
AV_RB24(buf2);
142 fsize = (header & 0x1FFF) + 3;
147 max_frames =
FFMAX(max_frames, frames);
149 first_frames = frames;
152 if (first_frames >= 3)
154 else if (max_frames > 100)
156 else if (max_frames >= 3)
158 else if (max_frames > 1)
167 .read_probe = latm_read_probe,
171 .extensions =
"latm",
176 #if CONFIG_MJPEG_DEMUXER
180 #if CONFIG_MLP_DEMUXER
192 #if CONFIG_TRUEHD_DEMUXER
204 #if CONFIG_SHORTEN_DEMUXER
216 #if CONFIG_VC1_DEMUXER
char * framerate
String describing framerate, set by a private option.
void av_free_packet(AVPacket *pkt)
Free a packet.
int av_parse_video_rate(AVRational *rate, const char *arg)
Parse str and store the detected values in *rate.
int64_t pos
byte position in stream, -1 if unknown
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)
enum AVStreamParseType need_parsing
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
#define LOAS_SYNC_WORD
11 bits LOAS sync word
int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
AVRational avg_frame_rate
Average framerate.
AVCodecContext * codec
Codec context associated with this stream.
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
enum AVMediaType codec_type
AVIOContext * pb
I/O context.
rational number numerator/denominator
This structure contains the data a format has to probe a file.
int64_t start_time
Decoding: pts of the first frame of the stream, in stream time base.
struct AVInputFormat * iformat
The input container format.
void * priv_data
Format private data.
This structure stores compressed data.