Part2: Overcome the ‘Access Violation Exception’ in the FFMPEG

Part2: Overcome the ‘Access Violation Exception’ in the FFMPEG

 

We have understood a simple solution in the “Part1: Overcome the ‘Access Violation Exception’ in the FFMPEG ”. Unfortunately, it pays performance for correction. I always ask me the same question “Can we find the better solution to balance between performance and correction?” As every plant has its root, this issue should have its bugfix in the level of source codes. As a result, I will focus on this point in this article.

Before modifying source codes, I must list major related files for the variables of ff_cos_*.

1. fft.c

2. x86/fft_mmx.asm

By analyzing these files, it is lucky that fft.c is eliminated for this case. As people often says “Double happiness at the door”. Fft_mmx.asm is organized by YASM syntax which is contained in my knowledge fieldJ .

Yeah, all that is needed is an east wind. Let’s do it! The main idea is to use un-aligning instructions to replace the aligning instruction in this file. Limitations for the discussing purpose, I only list the source codes after being revised. Reader can copy it into your proper folder and re-build FFMPEG. Now, how about your speed now:- )?

 

[Summarization]

1. It is a better method in this article if compared with Part1, but it is not final one.

2. The final one should be solved in the aspect of compiler, and all source codes keep original at the same time.

3. The final one will be represented in the next articles after my hard work.

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值