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
6579bc43
Commit
6579bc43
authored
May 16, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: allow switching to qatars buffersrc API
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3e2cf79e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ffmpeg.c
ffmpeg.c
+10
-0
No files found.
ffmpeg.c
View file @
6579bc43
...
...
@@ -2639,7 +2639,11 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
/* no picture yet */
if
(
!
pkt
->
size
)
for
(
i
=
0
;
i
<
ist
->
nb_filters
;
i
++
)
#ifdef SRCA
av_buffersrc_buffer
(
ist
->
filters
[
i
]
->
filter
,
NULL
);
#else
av_buffersrc_add_ref
(
ist
->
filters
[
i
]
->
filter
,
NULL
,
0
);
#endif
return
ret
;
}
...
...
@@ -2703,11 +2707,17 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
av_assert0
(
buf
->
refcount
>
0
);
buf
->
refcount
++
;
#ifdef SRCA
av_buffersrc_buffer
(
ist
->
filters
[
i
]
->
filter
,
fb
);
}
else
if
(
av_buffersrc_write_frame
(
ist
->
filters
[
i
]
->
filter
,
decoded_frame
)
<
0
)
{
#else
av_buffersrc_add_ref
(
ist
->
filters
[
i
]
->
filter
,
fb
,
AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT
|
AV_BUFFERSRC_FLAG_NO_COPY
);
}
else
if
(
av_buffersrc_add_frame
(
ist
->
filters
[
i
]
->
filter
,
decoded_frame
,
0
)
<
0
)
{
#endif
av_log
(
NULL
,
AV_LOG_FATAL
,
"Failed to inject frame into filter network
\n
"
);
exit_program
(
1
);
}
...
...
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