[Libav-user] Reading packed BGR format

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Aug 22 01:11:40 CEST 2014


Lyndon Hill <emptystate-at-yahoo.co.uk at ...> writes:

> I can open the file and decode frames of format 
> AV_PIX_FMT_BGR24 but the problem is that I'm 
> getting AVFrame.linesize[0] = -2160.

Meaning the frame is top-down which is normal 
for rawvideo in avi.
You don't have to care about this at all:
The data pointer still points to the "first" 
row and you still have to add linesize to 
find the "second" row.

Carl Eugen



More information about the Libav-user mailing list