Hi, could anyone tell me how and when to use "avcodec_flush_buffers" ? I'm trying to read a video, and then another one, which crashes the program. It seems that I have to use "avcodec_flush_buffers", but I'm not sure how to do it. Any help appreciated. Thanks in advance, --Raphael HUCK