Dear All How can I determine number of cached frames in audio codecs for both decoding and encoding? I'd like to know the maximum number of frames which I receive on decoder/encoder flush. For video codecs I use AVCodecContext->gop_size, is this correct? What should I use for audio codecs? Thank you Marcin