History

avutil/frame: also align data pointers in av_frame_get_buffer()

This avoids unpleasant surprises to av_frame_get_buffer callers that explicitly specified 64-byte alignment and didn't get AVFrame.data pointers that are 64-byte aligned. For example, see https://github.com/sekrit-twc/zimg/issues/212 Although the zscale issue has already been resolved by other means it would still be prudent to improve the behavior of av_frame_get_buffer to fix any unknown and future instances of similar issues.

Pavel Koshevoy committed 1 year ago

Commit 46cb7b81 parent ea91d974 files · +25 −9Browse files

Showing the changes to doc/APIchanges (1 of 4 files). Show all

Unified · Split

doc/APIchanges+4−0
@@ -2,6 +2,10 @@ The last version increases of all libraries were on 2024-03-07 · 1 unmodified line
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-11-16 - xxxxxxxxxx - lavu 59.47.101 - frame.h
6 av_frame_get_buffer() now also aligns the data pointers according to
7 the requested alignment.
8
52024-11-13 - xxxxxxxxxx - lavu 59.47.100 - channel_layout.h92024-11-13 - xxxxxxxxxx - lavu 59.47.100 - channel_layout.h
6 Add AV_CHAN_BINAURAL_LEFT, AV_CHAN_BINAURAL_RIGHT10 Add AV_CHAN_BINAURAL_LEFT, AV_CHAN_BINAURAL_RIGHT
7 Add AV_CH_BINAURAL_LEFT, AV_CH_BINAURAL_RIGHT11 Add AV_CH_BINAURAL_LEFT, AV_CH_BINAURAL_RIGHT

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t