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
c7f9aab8
Commit
c7f9aab8
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: Use AV_* prefixes for video and audio IDs
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
cf31c1d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
avisynth.c
libavformat/avisynth.c
+6
-6
No files found.
libavformat/avisynth.c
View file @
c7f9aab8
...
...
@@ -221,7 +221,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st)
int
planar
=
0
;
// 0: packed, 1: YUV, 2: Y8
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_VIDEO
;
st
->
codec
->
codec_id
=
CODEC_ID_RAWVIDEO
;
st
->
codec
->
codec_id
=
AV_
CODEC_ID_RAWVIDEO
;
st
->
codec
->
width
=
avs
->
vi
->
width
;
st
->
codec
->
height
=
avs
->
vi
->
height
;
...
...
@@ -304,19 +304,19 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
switch
(
avs
->
vi
->
sample_type
)
{
case
AVS_SAMPLE_INT8
:
st
->
codec
->
codec_id
=
CODEC_ID_PCM_U8
;
st
->
codec
->
codec_id
=
AV_
CODEC_ID_PCM_U8
;
break
;
case
AVS_SAMPLE_INT16
:
st
->
codec
->
codec_id
=
CODEC_ID_PCM_S16LE
;
st
->
codec
->
codec_id
=
AV_
CODEC_ID_PCM_S16LE
;
break
;
case
AVS_SAMPLE_INT24
:
st
->
codec
->
codec_id
=
CODEC_ID_PCM_S24LE
;
st
->
codec
->
codec_id
=
AV_
CODEC_ID_PCM_S24LE
;
break
;
case
AVS_SAMPLE_INT32
:
st
->
codec
->
codec_id
=
CODEC_ID_PCM_S32LE
;
st
->
codec
->
codec_id
=
AV_
CODEC_ID_PCM_S32LE
;
break
;
case
AVS_SAMPLE_FLOAT
:
st
->
codec
->
codec_id
=
CODEC_ID_PCM_F32LE
;
st
->
codec
->
codec_id
=
AV_
CODEC_ID_PCM_F32LE
;
break
;
default:
av_log
(
s
,
AV_LOG_ERROR
,
...
...
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