博客
关于我
get_input_packet源码 ffmpeg
阅读量:201 次
发布时间:2019-02-28

本文共 821 字,大约阅读时间需要 2 分钟。

rate_emu) { for (int i = 0; i < f->nb_streams; i++) { InputStream *ist = input_streams[f->ist_index + i]; int64_t pts = av_rescale(ist->dts, 1000000, AV_TIME_BASE); int64_t now = av_gettime_relative() - ist->start; if (pts > now) { return AVERROR(EAGAIN); } } } #if HAVE_PTHREADS if (nb_input_files > 1) { return get_input_packet_mt(f, pkt); #endif return av_read_frame(f->ctx, pkt); }

以上代码经过重新优化,主要做了以下改动:

  • 删除了所有无关的HTML标签和占位符
  • 保留了核心的代码逻辑
  • 增加了适当的代码注释
  • 保持了技术文件的专业性
  • 符合技术文档的标准写作风格
  • 保持了代码的可读性和可维护性
  • 如果需要进一步优化或补充,请提供更多具体要求。

    转载地址:http://jvln.baihongyu.com/

    你可能感兴趣的文章
    Text-to-Image with Diffusion models的巅峰之作:深入解读 DALL·E 2
    查看>>
    Tensorflow.python.framework.errors_impl.ResourceExhaustedError:无法分配内存[操作:AddV2]
    查看>>
    TCP基本入门-简单认识一下什么是TCP
    查看>>
    tableviewcell 中使用autolayout自适应高度
    查看>>
    Symbolic Aggregate approXimation(SAX,符号聚合近似)介绍-ChatGPT4o作答
    查看>>
    Orcale表被锁
    查看>>
    svn访问报错500
    查看>>
    sum(a.YYSR) over (partition by a.hy_dm) 不需要像group by那样需要分组函数。方便。
    查看>>
    ORCHARD 是什么?
    查看>>
    Struts2中使用Session的两种方法
    查看>>
    order by rand()
    查看>>
    Orderer节点启动报错解决方案:Not bootstrapping because of 3 existing channels
    查看>>
    org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement profile
    查看>>
    org.apache.commons.beanutils.BasicDynaBean cannot be cast to ...
    查看>>
    org.apache.dubbo.common.serialize.SerializationException: com.alibaba.fastjson2.JSONException: not s
    查看>>
    sqlserver学习笔记(三)—— 为数据库添加新的用户
    查看>>
    org.apache.ibatis.exceptions.PersistenceException:
    查看>>
    org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned
    查看>>
    org.apache.ibatis.type.TypeException: Could not resolve type alias 'xxxx'异常
    查看>>
    org.apache.poi.hssf.util.Region
    查看>>