mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 15:19:38 +03:00
AV_PKT_DATA_SKIP_SAMPLES gives the samples to skip at the start of a frame and the padding to discard at its end. When both apply to the same frame and overlap, the padding was compared with what was left after the skip, found too large, and ignored, so the padding was output. Check the padding against the whole frame, then discard what is left of it after the skip. The overlapping case of the api-skip-samples test now outputs nothing instead of the padding.
8 lines
326 B
Plaintext
8 lines
326 B
Plaintext
frame 1000 skip 0 discard 0: 1000 samples
|
|
frame 1000 skip 300 discard 0: 700 samples
|
|
frame 1000 skip 0 discard 400: 600 samples
|
|
frame 1000 skip 300 discard 400: 300 samples
|
|
frame 1000 skip 300 discard 700: 0 samples
|
|
frame 1000 skip 300 discard 800: 0 samples
|
|
frame 1000 skip 300 discard 1100: 700 samples
|