skotbook:ffmpeg catdog$ grep audio_buf1 ffplay.c
DECLARE_ALIGNED(16,uint8_t,audio_buf1[(AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2]);
            data_size = sizeof(is->audio_buf1);
(int16_t *)is->audio_buf1, &data_size,
                const void *ibuf[6]= {is->audio_buf1};
                is->audio_buf= is->audio_buf1;
               is->audio_buf = is->audio_buf1;

25.11.2009, в 5:51, 李鑫 написал(а):

Thank you, Alexandr Kutuzov,
i modify code to allocate memory with av_malloc and free memory with
av_free, it does work, thank you for your comment again.
i have question about ffplay, i follow it allocates memory as an array like *uint8_t audio_buf1[(AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2];* why does it
work right, but mine can not be?
best regards,
jacky_zz
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to