diff options
author | Marton Balint <cus@passwd.hu> | 2019-01-23 01:28:26 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2019-02-04 21:43:30 +0100 |
commit | 56c58b99d0670c8baff64b8b35bc06c9a9f35ef8 (patch) | |
tree | 76625f2e3fb160b956ac15f157818eab421d92af /libavformat/async.c | |
parent | 1eb6bfbc1ff5d9f670ae51b4ca41d0053a6fd486 (diff) | |
download | ffmpeg-56c58b99d0670c8baff64b8b35bc06c9a9f35ef8.tar.gz |
avformat/mpegts: cache PID discard values
discard_pid can be quite expensive, so let's cache it and recalculate it on
every packet start.
ffmpeg -y -i samples/MPEG-VOB/sdtv/RAI.ts -c copy -map 0:v:0 -map 0:a:0 -f mpegts /dev/null
Before:
1685 decicycles in handle_packet, 523483 runs, 805 skips
After:
883 decicycles in handle_packet, 523505 runs, 783 skips
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/async.c')
0 files changed, 0 insertions, 0 deletions