History

avcodec/pthread_frame: Constify src pointees

Andreas Rheinhardt committed 3 years ago

Commit da1d5671 parent 1046cfe1 file · +2 −2Browse files

Unified · Split

libavcodec/pthread_frame.c+2−2
@@ -265,7 +265,7 @@ static attribute_align_arg void *frame_worker_thread(void *arg) · 264 unmodified lines
265265 * @param for_user 0 if the destination is a codec thread, 1 if the destination is the user's thread
266266 * @return 0 on success, negative error code on failure
267267 */
268−static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user)
268+static int update_context_from_thread(AVCodecContext *dst, const AVCodecContext *src, int for_user)
269269 {
270270 const FFCodec *const codec = ffcodec(dst->codec);
271271 int err = 0;
@@ -394,7 +394,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 122 unmodified lines
394394 * @param src The source context.
395395 * @return 0 on success, negative error code on failure
396396 */
397−static int update_context_from_user(AVCodecContext *dst, AVCodecContext *src)
397+static int update_context_from_user(AVCodecContext *dst, const AVCodecContext *src)
398398 {
399399 int err;
400400

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