[FFmpeg-devel] [PATCH] lavc: add pkt_size field to AVFrame
Stefano Sabatini
stefasab at gmail.com
Sat Dec 15 00:54:31 CET 2012
On date Friday 2012-12-14 17:52:16 +0100, Stefano Sabatini encoded:
> TODO: add APIchanges entry, bump minor
> ---
> libavcodec/avcodec.h | 12 ++++++++++++
> libavcodec/utils.c | 4 ++++
> 2 files changed, 16 insertions(+)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index e432040..2c8288b 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -1467,6 +1467,16 @@ typedef struct AVFrame {
> * - decoding: Read by user.
> */
> int64_t channels;
> +
> + /**
> + * size of the corresponding packet, containing the compressed
> + * size of the frame, only relevant for video. It must be accessed
^^^^^^^^^^^^^^^^^^^^^^^
I'm not sure about this. Indeed IIRC we may have several frames out of
the same packet (vorbis?), so the pkt_size in this case it is not very
useful and does not correspond to the compressed size.
[...]
--
FFmpeg = Fierce & Fancy Marvellous Plastic Egregious Gem
More information about the ffmpeg-devel
mailing list