Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
9c0401bd
Commit
9c0401bd
authored
Jul 11, 2022
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/api: use AVFrame.duration instead of AVFrame.pkt_duration
parent
de3a135e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
api-h264-test.c
tests/api/api-h264-test.c
+1
-1
api-seek-test.c
tests/api/api-seek-test.c
+1
-1
No files found.
tests/api/api-h264-test.c
View file @
9c0401bd
...
...
@@ -154,7 +154,7 @@ static int video_decode_example(const char *input_filename)
return
number_of_written_bytes
;
}
printf
(
"%d, %s, %s, %8"
PRId64
", %8d, 0x%08"
PRIx32
"
\n
"
,
video_stream
,
av_ts2str
(
fr
->
pts
),
av_ts2str
(
fr
->
pkt_dts
),
fr
->
pkt_
duration
,
av_ts2str
(
fr
->
pts
),
av_ts2str
(
fr
->
pkt_dts
),
fr
->
duration
,
number_of_written_bytes
,
av_adler32_update
(
0
,
(
const
uint8_t
*
)
byte_buffer
,
number_of_written_bytes
));
av_frame_unref
(
fr
);
...
...
tests/api/api-seek-test.c
View file @
9c0401bd
...
...
@@ -156,7 +156,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
}
av_frame_unref
(
fr
);
}
}
while
(
result
>=
0
&&
(
no_seeking
||
(
fr
->
pts
+
fr
->
pkt_
duration
<=
ts_end
)));
}
while
(
result
>=
0
&&
(
no_seeking
||
(
fr
->
pts
+
fr
->
duration
<=
ts_end
)));
finish:
av_freep
(
&
byte_buffer
);
...
...
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