mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-03 02:17:45 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: (51 commits) cin audio: use sign_extend() instead of casting to int16_t cin audio: restructure decoding loop to avoid a separate counter variable cin audio: use local variable for delta value cin audio: remove unneeded cast from void* cin audio: validate the channel count cin audio: remove unneeded AVCodecContext pointer from CinAudioContext dsicin: fix several audio-related fields in the CIN demuxer flacdec: use av_get_bytes_per_sample() to get sample size dca: handle errors from dca_decode_block() dca: return error if the frame header is invalid dca: return proper error codes instead of -1 utvideo: handle empty Huffman trees binkaudio: change short to int16_t binkaudio: only decode one block at a time. binkaudio: store interleaved overlap samples in BinkAudioContext. binkaudio: pre-calculate quantization factors binkaudio: add some buffer overread checks. atrac3: support float or int16 output using request_sample_fmt atrac3: add CODEC_CAP_SUBFRAMES capability atrac3: return appropriate error codes instead of -1 ... Conflicts: libavcodec/atrac1.c libavcodec/dca.c libavformat/mov.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
d17e7070a0
14 changed files with 492 additions and 276 deletions
|
@ -2200,7 +2200,7 @@ static int has_codec_parameters(AVCodecContext *avctx)
|
|||
static int has_decode_delay_been_guessed(AVStream *st)
|
||||
{
|
||||
return st->codec->codec_id != CODEC_ID_H264 ||
|
||||
st->codec_info_nb_frames >= 6 + st->codec->has_b_frames;
|
||||
st->info->nb_decoded_frames >= 6;
|
||||
}
|
||||
|
||||
static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **options)
|
||||
|
@ -2226,6 +2226,8 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
|
|||
avcodec_get_frame_defaults(&picture);
|
||||
ret = avcodec_decode_video2(st->codec, &picture,
|
||||
&got_picture, avpkt);
|
||||
if (got_picture)
|
||||
st->info->nb_decoded_frames++;
|
||||
break;
|
||||
case AVMEDIA_TYPE_AUDIO:
|
||||
data_size = FFMAX(avpkt->size, AVCODEC_MAX_AUDIO_FRAME_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue