[Ffmpeg-devel] output_example

tkoninck Thomas.Koninckx
Sat Jul 23 17:14:00 CEST 2005


Hi,

I.m.o. line 356 of output_example.c:
if (out_size != 0)

should be:
if (out_size > 0)

'cause avcodec_encode_video can also return -1 if the buffer allocated
is too small. 

As this is something which only very seldomly occurs, and which is image
content dependent it is hard to debug... On the other hand, if you start
using ffmpeg it is very likely you base your initial code on the
output_example. Anyway, correct me if I'm making a mistake.

Regards,
Thomas






More information about the ffmpeg-devel mailing list