Hi, On Mon, Apr 25, 2011 at 2:46 PM, Justin Ruggles <[email protected]> wrote: > possibly... it doesn't do much though. if not for the flags it would > basically be a loop around set_context_opts(). > > i can shorten it if you want. :) > > for (i = 0; i < ic->nb_streams; i++) { > AVCodecContext *dec = ic->streams[i]->codec; > int oflag = 0; > switch (dec->codec_type) { > case AVMEDIA_TYPE_AUDIO: oflag = AVMEDIA_TYPE_AUDIO; break; > case AVMEDIA_TYPE_VIDEO: oflag = AVMEDIA_TYPE_VIDEO; break; > } > if (oflag) > set_context_opts(dec, avcodec_opts[dec->codec_type], > oflag | AV_OPT_FLAG_DECODING_PARAM, NULL);
That doesn't look right. :-). Keep the originel, I don't mind much. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
