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.
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to