Table of Contents

av_read_packet

Overview

OBSOLETE

Defined in avformat.h

Read a transport packet from a media file.

This function is obsolete and should never be used.
Use av_read_frame() instead.

int av_read_packet(AVFormatContext *s,
                   AVPacket *pkt);

Parameters

s

AVFormatContext *s

Media file handle. A pointer to AVFormatContext.

pkt

AVPacket *pkt

A pointer to the AVPacket to fill.

Return value

0 if OK. AVERROR_xxx if error.


Back to ffmpeg