mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/pthread_frame: Constify src pointees
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
1046cfe347
commit
da1d56776c
|
@ -265,7 +265,7 @@ static attribute_align_arg void *frame_worker_thread(void *arg)
|
||||||
* @param for_user 0 if the destination is a codec thread, 1 if the destination is the user's thread
|
* @param for_user 0 if the destination is a codec thread, 1 if the destination is the user's thread
|
||||||
* @return 0 on success, negative error code on failure
|
* @return 0 on success, negative error code on failure
|
||||||
*/
|
*/
|
||||||
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user)
|
static int update_context_from_thread(AVCodecContext *dst, const AVCodecContext *src, int for_user)
|
||||||
{
|
{
|
||||||
const FFCodec *const codec = ffcodec(dst->codec);
|
const FFCodec *const codec = ffcodec(dst->codec);
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
@ -394,7 +394,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
* @param src The source context.
|
* @param src The source context.
|
||||||
* @return 0 on success, negative error code on failure
|
* @return 0 on success, negative error code on failure
|
||||||
*/
|
*/
|
||||||
static int update_context_from_user(AVCodecContext *dst, AVCodecContext *src)
|
static int update_context_from_user(AVCodecContext *dst, const AVCodecContext *src)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue