Lines Matching refs:codec
71 const AVCodec *codec;
80 codec = ff_find_decoder(s, st, codec_id);
81 if (!codec)
84 if (codec->capabilities & AV_CODEC_CAP_AVOID_PROBING) {
88 if (probe_codec->id == codec->id &&
96 return codec;
195 /* close parser, because it depends on the codec */
213 /* update internal codec context, for the parser */
689 /* If this codec can be interlaced or progressive then we need
987 /* XXX: need has_b_frame, but cannot get it if the codec is
1286 /* close parser, because it depends on the codec */
1322 av_log(s, AV_LOG_VERBOSE, "parser not found for codec "
1962 FAIL("unknown codec");
2007 const AVCodec *codec;
2023 codec = find_probe_decoder(s, st, st->codecpar->codec_id);
2025 if (!codec) {
2040 ret = avcodec_open2(avctx, codec, options ? options : &thread_opt);
2056 if (avpriv_codec_get_cap_skip_frame_fill_param(avctx->codec)) {
2066 (avctx->codec->capabilities & AV_CODEC_CAP_CHANNEL_CONF)))) {
2206 // if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
2341 /* check that the codec id is supported */
2472 const AVCodec *codec;
2486 /* check if the caller has overridden the codec id */
2497 av_log(ic, AV_LOG_VERBOSE, "parser not found for codec "
2509 codec = find_probe_decoder(ic, st, st->codecpar->codec_id);
2526 if (codec && !avctx->codec)
2527 if (avcodec_open2(avctx, codec, options ? &options[i] : &thread_opt) < 0)
2529 "Failed to open codec in %s\n",__FUNCTION__);
2549 /* check if one codec still needs to be handled */
2607 /* We did not get all the codec info, but we read too much data. */
2754 /* If still no information, we try to open the codec and to
2760 * least one frame of codec data, this makes sure the codec initializes
2778 const AVCodec *codec = find_probe_decoder(ic, st, st->codecpar->codec_id);
2779 if (codec && !avctx->codec) {
2783 if (avcodec_open2(avctx, codec, (options && stream_index < orig_nb_streams) ? &options[stream_index] : &opts) < 0)
2785 "Failed to open codec in %s\n",__FUNCTION__);
2923 /* We could not have all the codec parameters before EOF. */
2943 "Could not find codec parameters for stream %d (%s): %s\n"
2955 /* update the stream parameters from the internal codec contexts */