On 10/27/2012 02:38 AM, Kostya Shishkov wrote:
> On Sat, Oct 27, 2012 at 01:26:49AM -0400, Justin Ruggles wrote:
>> ---
>> libavcodec/flacenc.c | 88
>> +++++++++++++++++++++++++++++++++++--------------
>> 1 files changed, 63 insertions(+), 25 deletions(-)
>>
>> diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
>> index 0ba9176..19413b3 100644
>> --- a/libavcodec/flacenc.c
>> +++ b/libavcodec/flacenc.c
>> @@ -92,6 +92,7 @@ typedef struct FlacEncodeContext {
>> int channels;
>> int samplerate;
>> int sr_code[2];
>> + int bps_code;
>> int max_blocksize;
>> int min_framesize;
>> int max_framesize;
>> @@ -128,7 +129,7 @@ static void write_streaminfo(FlacEncodeContext *s,
>> uint8_t *header)
>> put_bits(&pb, 24, s->max_framesize);
>> put_bits(&pb, 20, s->samplerate);
>> put_bits(&pb, 3, s->channels-1);
>
> diego-nits: valign, space
>
>> - put_bits(&pb, 5, 15); /* bits per sample - 1 */
>> + put_bits(&pb, 5, s->avctx->bits_per_raw_sample - 1);
>> /* write 36-bit sample count in 2 put_bits() calls */
>> put_bits(&pb, 24, (s->sample_count & 0xFFFFFF000LL) >> 12);
>> put_bits(&pb, 12, s->sample_count & 0x000000FFFLL);
After the patch it is aligned better actually. It's the line above it
that is not aligned.
-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel