Revision 277a28e8

View differences:

libavformat/asf.h
227 227

  
228 228
extern AVInputFormat asf_demuxer;
229 229

  
230
/**
231
 * Load a single ASF packet into the demuxer.
232
 * @param s demux context
233
 * @param pb context to read data from
234
 * @returns 0 on success, <0 on error
235
 */
236
int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb);
237

  
238
/**
239
 * Parse data from individual ASF packets (which were previously loaded
240
 * with asf_get_packet()).
241
 * @param s demux context
242
 * @param pb context to read data from
243
 * @param pkt pointer to store packet data into
244
 * @returns 0 if data was stored in pkt, <0 on error or 1 if more ASF
245
 *          packets need to be loaded (through asf_get_packet())
246
 */
247
int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt);
248

  
249 230
#endif /* AVFORMAT_ASF_H */
libavformat/asfdec.c
582 582
    default: var = defval; break; \
583 583
    }
584 584

  
585
int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb)
585
/**
586
 * Load a single ASF packet into the demuxer.
587
 * @param s demux context
588
 * @param pb context to read data from
589
 * @returns 0 on success, <0 on error
590
 */
591
static int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb)
586 592
{
587 593
    ASFContext *asf = s->priv_data;
588 594
    uint32_t packet_length, padsize;
......
726 732
    return 0;
727 733
}
728 734

  
729
int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
735
/**
736
 * Parse data from individual ASF packets (which were previously loaded
737
 * with asf_get_packet()).
738
 * @param s demux context
739
 * @param pb context to read data from
740
 * @param pkt pointer to store packet data into
741
 * @returns 0 if data was stored in pkt, <0 on error or 1 if more ASF
742
 *          packets need to be loaded (through asf_get_packet())
743
 */
744
static int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
730 745
{
731 746
    ASFContext *asf = s->priv_data;
732 747
    ASFStream *asf_st = 0;

Also available in: Unified diff