comparison avformat.h @ 6475:2da74be1a3d8 libavformat

Clarify what av_read_frame() returns.
author michael
date Tue, 14 Sep 2010 22:20:46 +0000
parents 1a62da965733
children
comparison
equal deleted inserted replaced
6474:3ec611be7d7a 6475:2da74be1a3d8
1086 */ 1086 */
1087 int av_read_packet(AVFormatContext *s, AVPacket *pkt); 1087 int av_read_packet(AVFormatContext *s, AVPacket *pkt);
1088 1088
1089 /** 1089 /**
1090 * Return the next frame of a stream. 1090 * Return the next frame of a stream.
1091 * This function returns what is stored in the file, and does not validate
1092 * that what is there are valid frames for the decoder. It will split what is
1093 * stored in the file into frames and return one for each call. It will not
1094 * omit invalid data between valid frames so as to give the decoder the maximum
1095 * information possible for decoding.
1091 * 1096 *
1092 * The returned packet is valid 1097 * The returned packet is valid
1093 * until the next av_read_frame() or until av_close_input_file() and 1098 * until the next av_read_frame() or until av_close_input_file() and
1094 * must be freed with av_free_packet. For video, the packet contains 1099 * must be freed with av_free_packet. For video, the packet contains
1095 * exactly one frame. For audio, it contains an integer number of 1100 * exactly one frame. For audio, it contains an integer number of