[libav-api] H264 Decoding

Kiara Forman kiaraforman at icloud.com
Wed Jun 1 22:22:51 CEST 2016


I am trying to decode h264 raw data. Currently i am getting a nal packet from the encoder and placing the size and data in the AVPacket structure. Then calling avcodec_decode_video2 with the AVPacket. The decoded image is green and purple and two halves of the same image. During my debugging i can tell that the decoded AVFrame data is incorrect. So i am assuming its a decoder issue.

Any suggestions on how to fix this?


More information about the libav-api mailing list