What error code for the 4 functions: avcodec_send_packet, avcodec_receive_frame, avcodec_send_frame, avcodec_receive_packet, means I should flush (End of stream situation)? And can someone put a simple example to show us how flushing is done? Thanks in advance!