On 4/24/2017 11:13 AM, Diego Biurrun wrote: > On Sat, Apr 22, 2017 at 01:05:01PM +0200, Diego Biurrun wrote: >> --- /dev/null >> +++ b/libavcodec/clearvideo.c >> @@ -0,0 +1,387 @@ >> +static int clv_decode_frame(AVCodecContext *avctx, void *data, >> + int *got_frame, AVPacket *avpkt) >> +{ >> + if (frame_type & 0x2) { >> + } else { >> + /* Only I-frames are supported for now. */ >> + } > > Here I might use avpriv_report_missing_feature() and return > AVERROR_PATCHWELCOME instead. This would of course result in a lot > of console spam. Thoughts? > > Diego
Add an did_warn variable to CLVContext, and set it to true after the warning is printed the first time. _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel