Unified · Split
| @@ -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 thread | 265 | * @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 failure | 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 | 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 failure | 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 | int err; | 399 | int err; |
| 400 | 400 | ||