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
dc386a5e
Commit
dc386a5e
authored
Jan 16, 2012
by
Clément Bœsch
Committed by
Clément Bœsch
Feb 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: use av_mpegtc_to_timecode_string().
parent
0eaa123b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
ffprobe.c
ffprobe.c
+4
-7
No files found.
ffprobe.c
View file @
dc386a5e
...
...
@@ -32,6 +32,7 @@
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/dict.h"
#include "libavutil/timecode.h"
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
...
...
@@ -1453,13 +1454,9 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
else
print_str_opt
(
"pix_fmt"
,
"unknown"
);
print_int
(
"level"
,
dec_ctx
->
level
);
if
(
dec_ctx
->
timecode_frame_start
>=
0
)
{
uint32_t
tc
=
dec_ctx
->
timecode_frame_start
;
print_fmt
(
"timecode"
,
"%02d:%02d:%02d%c%02d"
,
tc
>>
19
&
0x1f
,
// hours
tc
>>
13
&
0x3f
,
// minutes
tc
>>
6
&
0x3f
,
// seconds
tc
&
1
<<
24
?
';'
:
':'
,
// drop
tc
&
0x3f
);
// frames
char
tcbuf
[
AV_TIMECODE_STR_SIZE
];
av_timecode_make_mpeg_tc_string
(
tcbuf
,
dec_ctx
->
timecode_frame_start
);
print_str
(
"timecode"
,
tcbuf
);
}
else
{
print_str_opt
(
"timecode"
,
"N/A"
);
}
...
...
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