22:11
I'm facing the error in the title which crashes my thread.
int decode(AVPacket* pPacket)
int count = 0;
int response = avcodec_send_packet(_pCodecContext, pPacket);
while(response >= 0)
AVFrame* pFrame = av_frame_alloc();
response = avcodec_receive_frame(_pCodecContext, pFrame);
This is the general structure of where I'm decoding the video into frames.
I do use seek_frame to change position around avstream to get different frames with this:
avformat_seek_file(_pFormat, -1, INT64_MIN, location, INT64_MAX, (...)