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