Skip to content
Snippets Groups Projects
Commit d92550d1 authored by Anton Khirnov's avatar Anton Khirnov Committed by Michael Niedermayer
Browse files

lavf: eliminate ff_get_audio_frame_size()


It is basically a wrapper around av_get_audio_frame_duration(), with a
fallback to AVCodecContext.frame_size. However, that field is set only
when the stream codec context is actually used for encoding or decoding,
which is discouraged.

For muxing, it is generally the responsibility of the caller to set the
packet duration.
For demuxing, if the duration is not stored at the container level, it
should be set by the parser.

Therefore, removing the frame_size fallback should not break any
important case.
(cherry picked from commit 30e50c50)

Conflicts:

	libavformat/utils.c

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 7b59217b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment