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
265 * @param for_user 0 if the destination is a codec thread, 1 if the destination is the user's thread265 * @param for_user 0 if the destination is a codec thread, 1 if the destination is the user's thread
266 * @return 0 on success, negative error code on failure266 * @return 0 on success, negative error code on failure
267 */267 */
268static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user)268static int update_context_from_thread(AVCodecContext *dst, const AVCodecContext *src, int for_user)
269{269{
270 const FFCodec *const codec = ffcodec(dst->codec);270 const FFCodec *const codec = ffcodec(dst->codec);
271 int err = 0;271 int err = 0;
@@ -394,7 +394,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 122 unmodified lines
394 * @param src The source context.394 * @param src The source context.
395 * @return 0 on success, negative error code on failure395 * @return 0 on success, negative error code on failure
396 */396 */
397static int update_context_from_user(AVCodecContext *dst, AVCodecContext *src)397static int update_context_from_user(AVCodecContext *dst, const AVCodecContext *src)
398{398{
399 int err;399 int err;
400 400

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