Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ca2fd259
Commit
ca2fd259
authored
May 20, 2014
by
Dale Curtis
Committed by
Michael Niedermayer
May 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation errors when deprecated features are disabled.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
be656c36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
pthread_frame.c
libavcodec/pthread_frame.c
+5
-0
utils.c
libavcodec/utils.c
+12
-0
No files found.
libavcodec/pthread_frame.c
View file @
ca2fd259
...
@@ -119,8 +119,13 @@ typedef struct FrameThreadContext {
...
@@ -119,8 +119,13 @@ typedef struct FrameThreadContext {
int
die
;
///< Set when threads should exit.
int
die
;
///< Set when threads should exit.
}
FrameThreadContext
;
}
FrameThreadContext
;
#if FF_API_GET_BUFFER
#define THREAD_SAFE_CALLBACKS(avctx) \
#define THREAD_SAFE_CALLBACKS(avctx) \
((avctx)->thread_safe_callbacks || (!(avctx)->get_buffer && (avctx)->get_buffer2 == avcodec_default_get_buffer2))
((avctx)->thread_safe_callbacks || (!(avctx)->get_buffer && (avctx)->get_buffer2 == avcodec_default_get_buffer2))
#else
#define THREAD_SAFE_CALLBACKS(avctx) \
((avctx)->thread_safe_callbacks || (avctx)->get_buffer2 == avcodec_default_get_buffer2)
#endif
/**
/**
* Codec worker thread.
* Codec worker thread.
...
...
libavcodec/utils.c
View file @
ca2fd259
...
@@ -1640,7 +1640,11 @@ int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size)
...
@@ -1640,7 +1640,11 @@ int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size)
av_fast_padded_malloc
(
&
avctx
->
internal
->
byte_buffer
,
&
avctx
->
internal
->
byte_buffer_size
,
size
);
av_fast_padded_malloc
(
&
avctx
->
internal
->
byte_buffer
,
&
avctx
->
internal
->
byte_buffer_size
,
size
);
avpkt
->
data
=
avctx
->
internal
->
byte_buffer
;
avpkt
->
data
=
avctx
->
internal
->
byte_buffer
;
avpkt
->
size
=
avctx
->
internal
->
byte_buffer_size
;
avpkt
->
size
=
avctx
->
internal
->
byte_buffer_size
;
#if FF_API_DESTRUCT_PACKET
FF_DISABLE_DEPRECATION_WARNINGS
avpkt
->
destruct
=
NULL
;
avpkt
->
destruct
=
NULL
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
}
}
}
}
...
@@ -1812,7 +1816,11 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
...
@@ -1812,7 +1816,11 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
}
}
avpkt
->
buf
=
user_pkt
.
buf
;
avpkt
->
buf
=
user_pkt
.
buf
;
avpkt
->
data
=
user_pkt
.
data
;
avpkt
->
data
=
user_pkt
.
data
;
#if FF_API_DESTRUCT_PACKET
FF_DISABLE_DEPRECATION_WARNINGS
avpkt
->
destruct
=
user_pkt
.
destruct
;
avpkt
->
destruct
=
user_pkt
.
destruct
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
}
else
{
}
else
{
if
(
av_dup_packet
(
avpkt
)
<
0
)
{
if
(
av_dup_packet
(
avpkt
)
<
0
)
{
ret
=
AVERROR
(
ENOMEM
);
ret
=
AVERROR
(
ENOMEM
);
...
@@ -2013,7 +2021,11 @@ int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx,
...
@@ -2013,7 +2021,11 @@ int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx,
}
}
avpkt
->
buf
=
user_pkt
.
buf
;
avpkt
->
buf
=
user_pkt
.
buf
;
avpkt
->
data
=
user_pkt
.
data
;
avpkt
->
data
=
user_pkt
.
data
;
#if FF_API_DESTRUCT_PACKET
FF_DISABLE_DEPRECATION_WARNINGS
avpkt
->
destruct
=
user_pkt
.
destruct
;
avpkt
->
destruct
=
user_pkt
.
destruct
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
}
else
{
}
else
{
if
(
av_dup_packet
(
avpkt
)
<
0
)
{
if
(
av_dup_packet
(
avpkt
)
<
0
)
{
ret
=
AVERROR
(
ENOMEM
);
ret
=
AVERROR
(
ENOMEM
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment