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
1c2beff0
Commit
1c2beff0
authored
Jul 24, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: Set pos for all packets of AVSTREAM_PARSE_FULL_RAW files.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
72743aef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
avformat.h
libavformat/avformat.h
+3
-1
utils.c
libavformat/utils.c
+3
-0
No files found.
libavformat/avformat.h
View file @
1c2beff0
...
...
@@ -578,7 +578,9 @@ enum AVStreamParseType {
AVSTREAM_PARSE_HEADERS
,
/**< Only parse headers, do not repack. */
AVSTREAM_PARSE_TIMESTAMPS
,
/**< full parsing and interpolation of timestamps for frames not starting on a packet boundary */
AVSTREAM_PARSE_FULL_ONCE
,
/**< full parsing and repack of the first frame only, only implemented for H.264 currently */
AVSTREAM_PARSE_FULL_RAW
=
MKTAG
(
0
,
'R'
,
'A'
,
'W'
),
/**< full parsing and repack with timestamp generation for raw */
AVSTREAM_PARSE_FULL_RAW
=
MKTAG
(
0
,
'R'
,
'A'
,
'W'
),
/**< full parsing and repack with timestamp and position generation by parser for raw
this assumes that each packet in the file contains no demuxer level headers and
just codec level data, otherwise position generaion would fail */
};
typedef
struct
AVIndexEntry
{
...
...
libavformat/utils.c
View file @
1c2beff0
...
...
@@ -1216,6 +1216,9 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
out_pkt
.
dts
=
st
->
parser
->
dts
;
out_pkt
.
pos
=
st
->
parser
->
pos
;
if
(
st
->
need_parsing
==
AVSTREAM_PARSE_FULL_RAW
)
out_pkt
.
pos
=
st
->
parser
->
frame_offset
;
if
(
st
->
parser
->
key_frame
==
1
||
(
st
->
parser
->
key_frame
==
-
1
&&
st
->
parser
->
pict_type
==
AV_PICTURE_TYPE_I
))
...
...
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