Paul B Mahol: > +#include "libavutil/avassert.h" I don't see an assert. > + frame->nb_samples = 1024; If this codec has a fixed number of samples per frame, you should add it to the list in get_audio_frame_duration() in libavcodec/utils.c. Haven't checked the rest. - Andreas