From 30e50c50274f88f0f5ae829f401cd3c7f5266719 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 28 Jul 2014 13:27:57 +0000 Subject: 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. --- libavformat/internal.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/internal.h') 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); -- cgit v1.2.3