Sisir Koppaka wrote: > Also why are data and linesize declared are size 4 arrays in avcodec.h? Because some video codecs operate in more than one plane. In fact, many operate in 3. You will only need 1, however. -- -Mike Melanson