On Wed, Jul 27, 2022 at 12:08:14AM +0200, Andreas Rheinhardt wrote: > This is possible for most of the callers, because e.g. only > the MPEG-4 decoder can have bits_per_raw_sample > 8. > Also most mpegvideo-based codecs are 420 only. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/h261dec.c | 4 ++-- > libavcodec/h261enc.c | 2 +- > libavcodec/h263dec.c | 3 ++- > libavcodec/mpeg4videodec.c | 6 ++++-- > libavcodec/mpeg_er.c | 3 ++- > libavcodec/mpegvideo.h | 12 +++++++----- > libavcodec/mpegvideo_enc.c | 2 +- > libavcodec/rv10.c | 2 +- > libavcodec/rv34.c | 2 +- > libavcodec/vc1_block.c | 17 ++++++++++++----- > 10 files changed, 33 insertions(+), 20 deletions(-) ok [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Awnsering whenever a program halts or runs forever is On a turing machine, in general impossible (turings halting problem). On any real computer, always possible as a real computer has a finite number of states N, and will either halt in less than N cycles or never halt.