Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
c45ebd54
Commit
c45ebd54
authored
15 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
Set AVPacket.pos in MPEG-PS demuxer.
Originally committed as revision 21604 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3890dd3a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavformat/mpeg.c
+1
-0
1 addition, 0 deletions
libavformat/mpeg.c
tests/seek.regression.ref
+27
-27
27 additions, 27 deletions
tests/seek.regression.ref
with
28 additions
and
27 deletions
libavformat/mpeg.c
+
1
−
0
View file @
c45ebd54
...
@@ -557,6 +557,7 @@ static int mpegps_read_packet(AVFormatContext *s,
...
@@ -557,6 +557,7 @@ static int mpegps_read_packet(AVFormatContext *s,
get_buffer
(
s
->
pb
,
pkt
->
data
,
pkt
->
size
);
get_buffer
(
s
->
pb
,
pkt
->
data
,
pkt
->
size
);
pkt
->
pts
=
pts
;
pkt
->
pts
=
pts
;
pkt
->
dts
=
dts
;
pkt
->
dts
=
dts
;
pkt
->
pos
=
dummy_pos
;
pkt
->
stream_index
=
st
->
index
;
pkt
->
stream_index
=
st
->
index
;
#if 0
#if 0
av_log(s, AV_LOG_DEBUG, "%d: pts=%0.3f dts=%0.3f size=%d\n",
av_log(s, AV_LOG_DEBUG, "%d: pts=%0.3f dts=%0.3f size=%d\n",
...
...
This diff is collapsed.
Click to expand it.
tests/seek.regression.ref
+
27
−
27
View file @
c45ebd54
...
@@ -3157,59 +3157,59 @@ ret: 0 st:-1 flags:1 ts:-0.645825
...
@@ -3157,59 +3157,59 @@ ret: 0 st:-1 flags:1 ts:-0.645825
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 27837
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 27837
----------------
----------------
tests/data/b-lavf.mpg
tests/data/b-lavf.mpg
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
-1
size: 681
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
339968
size: 681
ret: 0 st: 0 flags:0 ts: 0.788333
ret: 0 st: 0 flags:0 ts: 0.788333
ret: 0 st: 1 flags:1 dts: 0.761222 pts: 0.761222 pos:
-1
size: 261
ret: 0 st: 1 flags:1 dts: 0.761222 pts: 0.761222 pos:
145408
size: 261
ret: 0 st: 0 flags:1 ts:-0.317500
ret: 0 st: 0 flags:1 ts:-0.317500
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st: 1 flags:0 ts: 2.576667
ret: 0 st: 1 flags:0 ts: 2.576667
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
-1
size: 235
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
370700
size: 235
ret: 0 st: 1 flags:1 ts: 1.470833
ret: 0 st: 1 flags:1 ts: 1.470833
ret: 0 st: 1 flags:1 dts: 1.283678 pts: 1.283678 pos:
-1
size: 379
ret: 0 st: 1 flags:1 dts: 1.283678 pts: 1.283678 pos:
368652
size: 379
ret: 0 st:-1 flags:0 ts: 0.365002
ret: 0 st:-1 flags:0 ts: 0.365002
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st:-1 flags:1 ts:-0.740831
ret: 0 st:-1 flags:1 ts:-0.740831
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st: 0 flags:0 ts: 2.153333
ret: 0 st: 0 flags:0 ts: 2.153333
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
-1
size: 681
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
339968
size: 681
ret: 0 st: 0 flags:1 ts: 1.047500
ret: 0 st: 0 flags:1 ts: 1.047500
ret: 0 st: 0 flags:0 dts: 1.020000 pts: 1.060000 pos:
-1
size: 16484
ret: 0 st: 0 flags:0 dts: 1.020000 pts: 1.060000 pos:
212992
size: 16484
ret: 0 st: 1 flags:0 ts:-0.058333
ret: 0 st: 1 flags:0 ts:-0.058333
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st: 1 flags:1 ts: 2.835833
ret: 0 st: 1 flags:1 ts: 2.835833
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
-1
size: 235
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
370700
size: 235
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
-1
size: 681
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
339968
size: 681
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:0 dts: 0.620000 pts: 0.660000 pos:
-1
size: 15804
ret: 0 st: 0 flags:0 dts: 0.620000 pts: 0.660000 pos:
67584
size: 15804
ret: 0 st: 0 flags:0 ts:-0.481667
ret: 0 st: 0 flags:0 ts:-0.481667
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st: 0 flags:1 ts: 2.412500
ret: 0 st: 0 flags:1 ts: 2.412500
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
-1
size: 681
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
339968
size: 681
ret: 0 st: 1 flags:0 ts: 1.306667
ret: 0 st: 1 flags:0 ts: 1.306667
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
-1
size: 235
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
370700
size: 235
ret: 0 st: 1 flags:1 ts: 0.200844
ret: 0 st: 1 flags:1 ts: 0.200844
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st:-1 flags:0 ts:-0.904994
ret: 0 st:-1 flags:0 ts:-0.904994
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st:-1 flags:1 ts: 1.989173
ret: 0 st:-1 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
-1
size: 681
ret: 0 st: 0 flags:1 dts: 1.420000 pts: 1.460000 pos:
339968
size: 681
ret: 0 st: 0 flags:0 ts: 0.883344
ret: 0 st: 0 flags:0 ts: 0.883344
ret: 0 st: 0 flags:0 dts: 0.900000 pts: 0.940000 pos:
-1
size: 12809
ret: 0 st: 0 flags:0 dts: 0.900000 pts: 0.940000 pos:
159744
size: 12809
ret: 0 st: 0 flags:1 ts:-0.222489
ret: 0 st: 0 flags:1 ts:-0.222489
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
ret: 0 st: 1 flags:0 ts: 2.671678
ret: 0 st: 1 flags:0 ts: 2.671678
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
-1
size: 235
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
370700
size: 235
ret: 0 st: 1 flags:1 ts: 1.565844
ret: 0 st: 1 flags:1 ts: 1.565844
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
-1
size: 235
ret: 0 st: 1 flags:1 dts: 1.518778 pts: 1.518778 pos:
370700
size: 235
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:0 dts: 0.500000 pts: 0.540000 pos:
-1
size: 16303
ret: 0 st: 0 flags:0 dts: 0.500000 pts: 0.540000 pos:
26624
size: 16303
ret: 0 st:-1 flags:1 ts:-0.645825
ret: 0 st:-1 flags:1 ts:-0.645825
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
-1
size: 208
ret: 0 st: 1 flags:1 dts: 0.500000 pts: 0.500000 pos:
2048
size: 208
----------------
----------------
tests/data/b-lavf.mxf
tests/data/b-lavf.mxf
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 6144 size: 24801
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 6144 size: 24801
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment