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
55823964
Commit
55823964
authored
Jul 12, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
Originally committed as revision 14185 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0bef08e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
utils.c
libavformat/utils.c
+16
-16
No files found.
libavformat/utils.c
View file @
55823964
...
...
@@ -553,28 +553,28 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
av_init_packet
(
pkt
);
ret
=
s
->
iformat
->
read_packet
(
s
,
pkt
);
if
(
ret
<
0
)
return
ret
;
st
=
s
->
streams
[
pkt
->
stream_index
];
av_init_packet
(
pkt
);
ret
=
s
->
iformat
->
read_packet
(
s
,
pkt
);
if
(
ret
<
0
)
return
ret
;
st
=
s
->
streams
[
pkt
->
stream_index
];
if
(
!
pktl
&&
st
->
codec
->
codec_id
!=
CODEC_ID_PROBE
)
return
ret
;
add_to_pktbuf
(
&
s
->
raw_packet_buffer
,
pkt
);
switch
(
st
->
codec
->
codec_type
){
case
CODEC_TYPE_VIDEO
:
if
(
s
->
video_codec_id
)
st
->
codec
->
codec_id
=
s
->
video_codec_id
;
break
;
case
CODEC_TYPE_AUDIO
:
if
(
s
->
audio_codec_id
)
st
->
codec
->
codec_id
=
s
->
audio_codec_id
;
break
;
case
CODEC_TYPE_SUBTITLE
:
if
(
s
->
subtitle_codec_id
)
st
->
codec
->
codec_id
=
s
->
subtitle_codec_id
;
break
;
}
switch
(
st
->
codec
->
codec_type
){
case
CODEC_TYPE_VIDEO
:
if
(
s
->
video_codec_id
)
st
->
codec
->
codec_id
=
s
->
video_codec_id
;
break
;
case
CODEC_TYPE_AUDIO
:
if
(
s
->
audio_codec_id
)
st
->
codec
->
codec_id
=
s
->
audio_codec_id
;
break
;
case
CODEC_TYPE_SUBTITLE
:
if
(
s
->
subtitle_codec_id
)
st
->
codec
->
codec_id
=
s
->
subtitle_codec_id
;
break
;
}
if
(
st
->
codec
->
codec_id
==
CODEC_ID_PROBE
){
AVProbeData
*
pd
=
&
st
->
probe_data
;
...
...
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