History

avutil: make av_frame_get_plane_buffer accept a const AVFrame*

Niklas Haas committed 3 years ago

Commit 4eaaa381 parent cea71b23 files · +5 −2Browse files

Unified · Split

3 files
  1. doc/APIchanges +3 −0
  2. libavutil/frame.c +1 −1
  3. libavutil/frame.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2023-04-10 - xxxxxxxxxx - lavu 58.6.100 - frame.h
6+ av_frame_get_plane_buffer() now accepts const AVFrame*.
7+
58 2023-04-04 - xxxxxxxxxx - lavu 58.6.100 - hdr_dynamic_metadata.h
69 Add AV_HDR_PLUS_MAX_PAYLOAD_SIZE.
710 av_dynamic_hdr_plus_create_side_data() now accepts a user provided
libavutil/frame.c+1−1
@@ -600,7 +600,7 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src) · 599 unmodified lines
600600 return frame_copy_props(dst, src, 1);
601601 }
602602
603−AVBufferRef *av_frame_get_plane_buffer(AVFrame *frame, int plane)
603+AVBufferRef *av_frame_get_plane_buffer(const AVFrame *frame, int plane)
604604 {
605605 uint8_t *data;
606606 int planes;
libavutil/frame.h+1−1
@@ -901,7 +901,7 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src); · 900 unmodified lines
901901 * @return the buffer reference that contains the plane or NULL if the input
902902 * frame is not valid.
903903 */
904−AVBufferRef *av_frame_get_plane_buffer(AVFrame *frame, int plane);
904+AVBufferRef *av_frame_get_plane_buffer(const AVFrame *frame, int plane);
905905
906906 /**
907907 * Add a new side data to a frame.

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