ffmpeg:av_read_frame
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ffmpeg:av_read_frame [2007/11/22 17:00] – deva | ffmpeg:av_read_frame [2007/11/22 17:03] (current) – deva | ||
---|---|---|---|
Line 5: | Line 5: | ||
Return the next frame of a stream.\\ | Return the next frame of a stream.\\ | ||
- | The returned packet is valid until the next av_read_frame() or until av_close_input_file() and must be freed with av_free_packet. For video, the packet contains exactly one frame. For audio, it contains an integer number of frames if each frame has a known fixed size (e.g. PCM or ADPCM data). If the audio frames have a variable size (e.g. MPEG audio), then it contains one frame.\\ | + | The returned packet is valid until the next [[ffmpeg:av_read_frame()]] or until [[ffmpeg:av_close_input_file()]] and must be freed with [[ffmpeg:av_free_packet()]]. For video, the packet contains exactly one frame. For audio, it contains an integer number of frames if each frame has a known fixed size (e.g. PCM or ADPCM data). If the audio frames have a variable size (e.g. MPEG audio), then it contains one frame.\\ |
- | + | ||
- | pkt-> | + | |
- | decompress the payload. | + | |
+ | '' | ||
<code c> | <code c> | ||
int av_read_frame(AVFormatContext *s, | int av_read_frame(AVFormatContext *s, |
ffmpeg/av_read_frame.1195747236.txt.gz · Last modified: 2007/11/22 17:00 by deva