[Libav-user] Provided packet is too small, needs to be x

Karthik Viswanathan vkarthik at entrayn.com
Thu Jun 13 11:45:49 CEST 2013


Fixed it, my bad, used the same packet for decoding & encoding.

        av_free_packet(&packet);
        av_init_packet(&packet);
        ret = avcodec_encode_video2(pCodecCtxOut, &packet, frame, &got_output);

fixes it.


More information about the Libav-user mailing list