[FFmpeg-devel] [PATCH 02/12] asfdec: skip the stream bitrate list
Måns Rullgård
mans
Wed Feb 9 23:52:18 CET 2011
Anton Khirnov <anton at khirnov.net> writes:
> Its contents aren't used for anything.
> ---
> libavformat/asfdec.c | 15 ---------------
> 1 files changed, 0 insertions(+), 15 deletions(-)
>
> diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
> index 9f41793..ac53581 100644
> --- a/libavformat/asfdec.c
> +++ b/libavformat/asfdec.c
> @@ -429,21 +429,6 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
> get_tag(s, "copyright", 0, len3);
> get_tag(s, "comment" , 0, len4);
> url_fskip(pb, len5);
> - } else if (!ff_guidcmp(&g, &stream_bitrate_guid)) {
> - int stream_count = get_le16(pb);
> - int j;
> -
> -// av_log(s, AV_LOG_ERROR, "stream bitrate properties\n");
> -// av_log(s, AV_LOG_ERROR, "streams %d\n", streams);
> - for(j = 0; j < stream_count; j++) {
> - int flags, bitrate, stream_id;
> -
> - flags= get_le16(pb);
> - bitrate= get_le32(pb);
> - stream_id= (flags & 0x7f);
> -// av_log(s, AV_LOG_ERROR, "flags: 0x%x stream id %d, bitrate %d\n", flags, stream_id, bitrate);
> - asf->stream_bitrates[stream_id]= bitrate;
> - }
Does this make asf->stream_bitrates[] unused as well?
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list