Clive Taylor wrote:
> 
> I think the answer to this is that without encoding the frame, the
> header and trailer info is not present in the frame, so the JPEG file
> would not be valid. I haven't confirmed this (searched for "JFIF", or
> whatever, in the data), but it seems the most likely explanation.
> 

That is true, I saved it to disk and saw that it is only raw data without
any header, footer data.
But I was wondering would it be better if there is a av_save_frame(AVFrame,
format) method, that does everything for you. I thought that something like
that exists.
-- 
View this message in context: 
http://www.nabble.com/saving-AVFrame-to-JPEG-tp23652229p23667944.html
Sent from the libav-users mailing list archive at Nabble.com.

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

Reply via email to