On 29/03/12 14:37, Justin Ruggles wrote:
> On 03/29/2012 05:22 PM, Luca Barbato wrote:
> 
>> av_dump_format needs the codecs opened in order to print them.
>> ---
>>  libavformat/output-example.c |   10 ++++++----
>>  1 files changed, 6 insertions(+), 4 deletions(-)
>>
>> diff --git a/libavformat/output-example.c b/libavformat/output-example.c
>> index a467109..195f9df 100644
>> --- a/libavformat/output-example.c
>> +++ b/libavformat/output-example.c
>> @@ -147,8 +147,10 @@ static void write_audio_frame(AVFormatContext *oc, 
>> AVStream *st)
>>  
>>      get_audio_frame(samples, audio_input_frame_size, c->channels);
>>      frame->nb_samples = audio_input_frame_size;
>> -    avcodec_fill_audio_frame(frame, c->channels, c->sample_fmt, (uint8_t 
>> *)samples,
>> -                             audio_input_frame_size * 
>> av_get_bytes_per_sample(c->sample_fmt)
>> +    avcodec_fill_audio_frame(frame, c->channels,
>> +                             c->sample_fmt, (uint8_t *)samples,
>> +                             audio_input_frame_size *
>> +                             av_get_bytes_per_sample(c->sample_fmt)
>>                               * c->channels, 1);
> 
> that hunk looks like it belongs in patch 3/3
> 

Indeed ^^;

lu


-- 

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to