Read and write operations don't have to honor the data rate of the stream in question. Instead, they happen without any delays as soon as possible. After all, if you transcode a file, you are typically not interested in doing it at 100% playback speed and more likely you are interested in having it completed quickly, as quick as reading, writing, encoding etc. allows.
Any source generating content is interested to properly time stamp it, attaching frame rate and individual timestamps, so that playback could reproduce the stream accurately, including relatively to other streams ("lipsync").
Any presentation system is interested in presenting data taking into consideration time stamps, adding delays and idle time if/when necessary, so that playback is accurate.
Everything else in between, including av_read_frame
, only cares for not losing timings attached to data, and is executed without any delays (in case of av_read_frame
returning you as many frames per second as it can).