summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-07-28 13:27:57 +0000
committerAnton Khirnov <anton@khirnov.net>2014-08-13 17:41:11 +0000
commit30e50c50274f88f0f5ae829f401cd3c7f5266719 (patch)
tree6279a000642b3c6e929709be96a1a3818e34993f /libavformat/internal.h
parent481a3667495425db9fdffb653292b6460fb68208 (diff)
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.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 2824436286..9921ce11e0 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -326,8 +326,6 @@ int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out,
void ff_compute_frame_duration(int *pnum, int *pden, AVStream *st,
AVCodecParserContext *pc, AVPacket *pkt);
-int ff_get_audio_frame_size(AVCodecContext *enc, int size, int mux);
-
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id);
enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);