> >that's something i'm very interested in as well, but in the case of MPEG-TS >input.
Basically, you can not. The best way to do it is: 1) Open your own read-context with the url_ functions. Set it when creating the input context. 2) Dedect you resulution change when parsing your own information 3) Close the codec. In case of the mpegts de-muxer, you will need to close it itself (its a dirty hack, but the only way to close the program tables and the pes packet buffer) 3b) If you are multi-treading decoding, make sure your threads are finished. 4) Flush both the packet buffer and the raw packet buffer 5) Re-open your codec. Note that depending on your stream container, this might not be enough. Ege the demuxer may hold some internal reference on the video stream, and try to re-use that. I actually have a patch that does most of this, but its not easily used in the main ffmpeg app because it needs many changes to ffmpeg.c. Erik _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
