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
8f4b176c
Commit
8f4b176c
authored
Jun 04, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dvbsubdec: add some basic av_log debuging support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
deadcf5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dvbsubdec.c
libavcodec/dvbsubdec.c
+7
-1
No files found.
libavcodec/dvbsubdec.c
View file @
8f4b176c
...
@@ -1495,6 +1495,10 @@ static int dvbsub_decode(AVCodecContext *avctx,
...
@@ -1495,6 +1495,10 @@ static int dvbsub_decode(AVCodecContext *avctx,
segment_length
=
AV_RB16
(
p
);
segment_length
=
AV_RB16
(
p
);
p
+=
2
;
p
+=
2
;
if
(
avctx
->
debug
&
FF_DEBUG_STARTCODE
)
{
av_log
(
avctx
,
AV_LOG_DEBUG
,
"segment_type:%d page_id:%d segment_length:%d
\n
"
,
segment_type
,
page_id
,
segment_length
);
}
if
(
p_end
-
p
<
segment_length
)
{
if
(
p_end
-
p
<
segment_length
)
{
av_dlog
(
avctx
,
"incomplete or broken packet"
);
av_dlog
(
avctx
,
"incomplete or broken packet"
);
return
-
1
;
return
-
1
;
...
@@ -1538,8 +1542,10 @@ static int dvbsub_decode(AVCodecContext *avctx,
...
@@ -1538,8 +1542,10 @@ static int dvbsub_decode(AVCodecContext *avctx,
}
}
// Some streams do not send a display segment but if we have all the other
// Some streams do not send a display segment but if we have all the other
// segments then we need no further data.
// segments then we need no further data.
if
(
got_segment
==
15
&&
sub
)
if
(
got_segment
==
15
&&
sub
)
{
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Missing display_end_segment, emulating
\n
"
);
*
data_size
=
dvbsub_display_end_segment
(
avctx
,
p
,
0
,
sub
);
*
data_size
=
dvbsub_display_end_segment
(
avctx
,
p
,
0
,
sub
);
}
return
p
-
buf
;
return
p
-
buf
;
}
}
...
...
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