On Wed, Apr 09, 2008 at 07:49:37PM +0200, Vicente Soriano wrote: > > > > You forgot av_write_header(output) before calling av_write_frame. > > Ok, first of all, thanks for your quick answer. > I've done exactly the changes that you said, and it compiles well again. But > now the program > crashes when it reaches the function av_write_header(). The difference is > that now > I get a message in the standard output: > > [mpeg4 @ 689AC550]buffer smaller than minimum size > > Seems that is easier reading frames from a file than writing them :P > Again, i will thank all the help that you could give me.
grep 'buffer smaller than minimum size' libav*/*.c
finds 2 hits in libavcodec/utils.c
the respective code is:
int attribute_align_arg avcodec_encode_video(AVCodecContext *avctx, uint8_t
*buf, int buf_size,
const AVFrame *pict)
{
if(buf_size < FF_MIN_BUFFER_SIZE){
av_log(avctx, AV_LOG_ERROR, "buffer smaller than minimum size\n");
return -1;
}
----
I think it should be obvious where the problem is ...
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I have often repented speaking, but never of holding my tongue.
-- Xenocrates
signature.asc
Description: Digital signature
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
