diff options
author | wm4 <nfxjfg@googlemail.com> | 2016-03-22 19:09:53 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-03-23 19:31:23 +0100 |
commit | 05f66706d182eb0c36af54d72614bf4c33e957a9 (patch) | |
tree | 5c2c36760d5833a96ff0a1aa25cdb8d0ff83b7ce /libavformat | |
parent | 0d2fcdb1c5c9e844c232e5429130727121990d0e (diff) | |
download | ffmpeg-streaming-05f66706d182eb0c36af54d72614bf4c33e957a9.zip ffmpeg-streaming-05f66706d182eb0c36af54d72614bf4c33e957a9.tar.gz |
lavc: introduce a new decoding/encoding API with decoupled input/output
Until now, the decoding API was restricted to outputting 0 or 1 frames
per input packet. It also enforces a somewhat rigid dataflow in general.
This new API seeks to relax these restrictions by decoupling input and
output. Instead of doing a single call on each decode step, which may
consume the packet and may produce output, the new API requires the user
to send input first, and then ask for output.
For now, there are no codecs supporting this API. The API can work with
codecs using the old API, and most code added here is to make them
interoperate. The reverse is not possible, although for audio it might.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avformat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 6db17f7..1a99948 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -149,8 +149,8 @@ * av_read_frame() on it. Each call, if successful, will return an AVPacket * containing encoded data for one AVStream, identified by * AVPacket.stream_index. This packet may be passed straight into the libavcodec - * decoding functions avcodec_decode_video2(), avcodec_decode_audio4() or - * avcodec_decode_subtitle2() if the caller wishes to decode the data. + * decoding functions avcodec_send_packet() or avcodec_decode_subtitle2() if the + * caller wishes to decode the data. * * AVPacket.pts, AVPacket.dts and AVPacket.duration timing information will be * set if known. They may also be unset (i.e. AV_NOPTS_VALUE for |