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
d10d60be
Commit
d10d60be
authored
Oct 28, 2013
by
Stephen Hutchinson
Committed by
Michael Niedermayer
Oct 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avisynth: Compact AvxSynth's avoidance of 2.6's colorspaces.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2c18bfe6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
avisynth.c
libavformat/avisynth.c
+6
-9
No files found.
libavformat/avisynth.c
View file @
d10d60be
...
...
@@ -54,14 +54,6 @@
#define FreeLibrary dlclose
#endif
// AvxSynth doesn't have these colorspaces, so disable them
#ifndef _WIN32
#define avs_is_yv24(vi) 0
#define avs_is_yv16(vi) 0
#define avs_is_yv411(vi) 0
#define avs_is_y8(vi) 0
#endif
typedef
struct
{
void
*
library
;
#define AVSC_DECLARE_FUNC(name) name ## _func name
...
...
@@ -458,7 +450,11 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
pkt
->
dts
=
n
;
pkt
->
duration
=
1
;
// Define the bpp values for the new AviSynth 2.6 colorspaces
#ifdef USING_AVISYNTH
/* Define the bpp values for the new AviSynth 2.6 colorspaces.
* Since AvxSynth doesn't have these functions, special-case
* it in order to avoid implicit declaration errors. */
if
(
avs_is_yv24
(
avs
->
vi
))
bits
=
24
;
else
if
(
avs_is_yv16
(
avs
->
vi
))
...
...
@@ -468,6 +464,7 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
else
if
(
avs_is_y8
(
avs
->
vi
))
bits
=
8
;
else
#endif
bits
=
avs_bits_per_pixel
(
avs
->
vi
);
/* Without the cast to int64_t, calculation overflows at about 9k x 9k
...
...
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