[Libav-user] Can sws_scale() mirror the frame?

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jan 16 23:42:57 CET 2013

Wagner Patriota <wagner.patriota at ...> writes:

> After decoding videos I get the frame upside down after 
> sws_scale() from H.264 pixel format to AV_PIX_FMT_RGB24.

Pass a negative linesize (and an appropriately fixed starting pointer).
("Mirror" usually means horizontal flip, "flip" is vertical)

Carl Eugen

More information about the Libav-user mailing list