Hi, I'm using avcodec to decode H.264 video-only streams. I have one
decoder and I pass in one stream, however at various points I switch
the video to another stream.

I'm finding that sometimes the decoder gets into a state where it is
one frame behind. So If I switch from stream 1 to stream 2, the first
image I get out is the last image from stream 1. I've looked pretty
hard at my code and can't see why it might be happening.

So my question is, is there a way to reset the decoder without
destroying and re-instantiating it? I've tried passing in "00 00 00 01
2A 00 00 00 01" when switching streams in an attempt to force "end of
sequence" but it hasn't worked. Any bright ideas?

TIA, Chris.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to