Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
efb1ce28
Commit
efb1ce28
authored
Oct 12, 2011
by
Clément Bœsch
Committed by
Clément Bœsch
Oct 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg12: use drop_frame_flag to fix timecode debug format.
parent
539399d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mpeg12.c
libavcodec/mpeg12.c
+4
-3
No files found.
libavcodec/mpeg12.c
View file @
efb1ce28
...
@@ -2160,14 +2160,14 @@ static void mpeg_decode_gop(AVCodecContext *avctx,
...
@@ -2160,14 +2160,14 @@ static void mpeg_decode_gop(AVCodecContext *avctx,
Mpeg1Context
*
s1
=
avctx
->
priv_data
;
Mpeg1Context
*
s1
=
avctx
->
priv_data
;
MpegEncContext
*
s
=
&
s1
->
mpeg_enc_ctx
;
MpegEncContext
*
s
=
&
s1
->
mpeg_enc_ctx
;
int
drop_frame_flag
;
int
time_code_hours
,
time_code_minutes
;
int
time_code_hours
,
time_code_minutes
;
int
time_code_seconds
,
time_code_pictures
;
int
time_code_seconds
,
time_code_pictures
;
int
broken_link
;
int
broken_link
;
init_get_bits
(
&
s
->
gb
,
buf
,
buf_size
*
8
);
init_get_bits
(
&
s
->
gb
,
buf
,
buf_size
*
8
);
skip_bits1
(
&
s
->
gb
);
/* drop_frame_flag */
drop_frame_flag
=
get_bits
(
&
s
->
gb
,
1
);
time_code_hours
=
get_bits
(
&
s
->
gb
,
5
);
time_code_hours
=
get_bits
(
&
s
->
gb
,
5
);
time_code_minutes
=
get_bits
(
&
s
->
gb
,
6
);
time_code_minutes
=
get_bits
(
&
s
->
gb
,
6
);
skip_bits1
(
&
s
->
gb
);
// marker bit
skip_bits1
(
&
s
->
gb
);
// marker bit
...
@@ -2181,8 +2181,9 @@ static void mpeg_decode_gop(AVCodecContext *avctx,
...
@@ -2181,8 +2181,9 @@ static void mpeg_decode_gop(AVCodecContext *avctx,
broken_link
=
get_bits1
(
&
s
->
gb
);
broken_link
=
get_bits1
(
&
s
->
gb
);
if
(
s
->
avctx
->
debug
&
FF_DEBUG_PICT_INFO
)
if
(
s
->
avctx
->
debug
&
FF_DEBUG_PICT_INFO
)
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"GOP (%
2d:%02d:%02d.
[%02d]) closed_gop=%d broken_link=%d
\n
"
,
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"GOP (%
02d:%02d:%02d%c
[%02d]) closed_gop=%d broken_link=%d
\n
"
,
time_code_hours
,
time_code_minutes
,
time_code_seconds
,
time_code_hours
,
time_code_minutes
,
time_code_seconds
,
drop_frame_flag
?
';'
:
':'
,
time_code_pictures
,
s
->
closed_gop
,
broken_link
);
time_code_pictures
,
s
->
closed_gop
,
broken_link
);
}
}
/**
/**
...
...
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