You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: riff: remove a write-only variable lavc: extend frame_size doxy. alacdec: set bits_per_raw_sample Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -621,6 +621,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
|
|||||||
alac->sample_size);
|
alac->sample_size);
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
avctx->bits_per_raw_sample = alac->sample_size;
|
||||||
|
|
||||||
if (alac->channels < 1) {
|
if (alac->channels < 1) {
|
||||||
av_log(avctx, AV_LOG_WARNING, "Invalid channel count\n");
|
av_log(avctx, AV_LOG_WARNING, "Invalid channel count\n");
|
||||||
|
@@ -2249,7 +2249,13 @@ typedef struct AVCodecContext {
|
|||||||
|
|
||||||
/* The following data should not be initialized. */
|
/* The following data should not be initialized. */
|
||||||
/**
|
/**
|
||||||
* Samples per packet, initialized when calling 'init'.
|
* Number of samples per channel in an audio frame.
|
||||||
|
*
|
||||||
|
* - encoding: set by libavcodec in avcodec_open2(). Each submitted frame
|
||||||
|
* except the last must contain exactly frame_size samples per channel.
|
||||||
|
* May be 0 when the codec has CODEC_CAP_VARIABLE_FRAME_SIZE set, then the
|
||||||
|
* frame size is not restricted.
|
||||||
|
* - decoding: may be set by some decoders to indicate constant frame size
|
||||||
*/
|
*/
|
||||||
int frame_size;
|
int frame_size;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user