Michael Niedermayer wrote: > > audio should be changed to use AVFrame as well Yes. Perhaps we could use the same API for video/audio/subtitle/.* decoding. avcodec_decode(ctx, &pkt, &frame); PTS/DTS is forwarded from pkt to frame (as discussed in another thread) optionally we could pass an opaque as well. same goes for the encode() equivalence.