From aaafbfcc06a8e69bca78641af70f43b2ad12e56a Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 19 Jan 2016 22:47:18 +0100 Subject: audio: remove initial decoding retry limitation Seems useless. This only helped in one case: one audio stream in the sample av_find_best_stream_fails.ts had a AC3 packets which couldn't be decoded, and for which avcodec_decode_audio4() returned 0 forever. In this specific case, playback will now not start, and you have to deselect audio manually. (If someone complains, the old behavior might be restored, but differently.) Also remove the stale "bitrate" field. --- audio/decode/dec_audio.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'audio') diff --git a/audio/decode/dec_audio.h b/audio/decode/dec_audio.h index b273bb2af9..d88d8bfaea 100644 --- a/audio/decode/dec_audio.h +++ b/audio/decode/dec_audio.h @@ -35,11 +35,8 @@ struct dec_audio { struct sh_stream *header; struct af_stream *afilter; char *decoder_desc; - int init_retries; struct mp_audio decode_format; struct mp_audio *waiting; // used on format-change - // set by decoder - int bitrate; // input bitrate, can change with VBR sources // last known pts value in output from decoder double pts; // number of samples output by decoder after last known pts -- cgit v1.2.3