Hello! I'm using ffmpeg 1.2 to take video from ip camera.I make it draw on the screen, so I wonder if there is some event mechanism to to know if it is time to call av_read_frame? If I read frame not so frequent as the camera gives frames i get segmentation fault = on some malloc functions inside ffmpeg routines.