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
b7baebb7
Commit
b7baebb7
authored
Sep 02, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ffv1dec: Print CRCs at picture debug level
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
eac16145
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ffv1dec.c
libavcodec/ffv1dec.c
+8
-2
No files found.
libavcodec/ffv1dec.c
View file @
b7baebb7
...
@@ -513,6 +513,7 @@ static int read_extra_header(FFV1Context *f)
...
@@ -513,6 +513,7 @@ static int read_extra_header(FFV1Context *f)
uint8_t
state
[
CONTEXT_SIZE
];
uint8_t
state
[
CONTEXT_SIZE
];
int
i
,
j
,
k
,
ret
;
int
i
,
j
,
k
,
ret
;
uint8_t
state2
[
32
][
CONTEXT_SIZE
];
uint8_t
state2
[
32
][
CONTEXT_SIZE
];
unsigned
crc
=
0
;
memset
(
state2
,
128
,
sizeof
(
state2
));
memset
(
state2
,
128
,
sizeof
(
state2
));
memset
(
state
,
128
,
sizeof
(
state
));
memset
(
state
,
128
,
sizeof
(
state
));
...
@@ -598,11 +599,12 @@ static int read_extra_header(FFV1Context *f)
...
@@ -598,11 +599,12 @@ static int read_extra_header(FFV1Context *f)
av_log
(
f
->
avctx
,
AV_LOG_ERROR
,
"CRC mismatch %X!
\n
"
,
v
);
av_log
(
f
->
avctx
,
AV_LOG_ERROR
,
"CRC mismatch %X!
\n
"
,
v
);
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
crc
=
AV_RB32
(
f
->
avctx
->
extradata
+
f
->
avctx
->
extradata_size
-
4
);
}
}
if
(
f
->
avctx
->
debug
&
FF_DEBUG_PICT_INFO
)
if
(
f
->
avctx
->
debug
&
FF_DEBUG_PICT_INFO
)
av_log
(
f
->
avctx
,
AV_LOG_DEBUG
,
av_log
(
f
->
avctx
,
AV_LOG_DEBUG
,
"global: ver:%d.%d, coder:%d, colorspace: %d bpr:%d chroma:%d(%d:%d), alpha:%d slices:%dx%d qtabs:%d ec:%d intra:%d
\n
"
,
"global: ver:%d.%d, coder:%d, colorspace: %d bpr:%d chroma:%d(%d:%d), alpha:%d slices:%dx%d qtabs:%d ec:%d intra:%d
CRC:0x%08X
\n
"
,
f
->
version
,
f
->
micro_version
,
f
->
version
,
f
->
micro_version
,
f
->
ac
,
f
->
ac
,
f
->
colorspace
,
f
->
colorspace
,
...
@@ -612,7 +614,8 @@ static int read_extra_header(FFV1Context *f)
...
@@ -612,7 +614,8 @@ static int read_extra_header(FFV1Context *f)
f
->
num_h_slices
,
f
->
num_v_slices
,
f
->
num_h_slices
,
f
->
num_v_slices
,
f
->
quant_table_count
,
f
->
quant_table_count
,
f
->
ec
,
f
->
ec
,
f
->
intra
f
->
intra
,
crc
);
);
return
0
;
return
0
;
}
}
...
@@ -947,6 +950,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
...
@@ -947,6 +950,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
}
}
fs
->
slice_damaged
=
1
;
fs
->
slice_damaged
=
1
;
}
}
if
(
avctx
->
debug
&
FF_DEBUG_PICT_INFO
)
{
av_log
(
avctx
,
AV_LOG_DEBUG
,
"slice %d, CRC: 0x%08X
\n
"
,
i
,
AV_RB32
(
buf_p
+
v
-
4
));
}
}
}
if
(
i
)
{
if
(
i
)
{
...
...
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