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
0d5e6843
Commit
0d5e6843
authored
Apr 02, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: change a few comments into error messages
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b25d931a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
h264.c
libavcodec/h264.c
+17
-7
No files found.
libavcodec/h264.c
View file @
0d5e6843
...
...
@@ -2244,8 +2244,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
MPV_common_end
(
s
);
}
if
(
!
s
->
context_initialized
)
{
if
(
h
!=
h0
)
return
-
1
;
// we cant (re-)initialize context during parallel decoding
if
(
h
!=
h0
){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"we cant (re-)initialize context during parallel decoding
\n
"
);
return
-
1
;
}
avcodec_set_dimensions
(
s
->
avctx
,
s
->
width
,
s
->
height
);
s
->
avctx
->
sample_aspect_ratio
=
h
->
sps
.
sar
;
...
...
@@ -2275,8 +2277,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
ff_hwaccel_pixfmt_list_420
);
s
->
avctx
->
hwaccel
=
ff_find_hwaccel
(
s
->
avctx
->
codec
->
id
,
s
->
avctx
->
pix_fmt
);
if
(
MPV_common_init
(
s
)
<
0
)
if
(
MPV_common_init
(
s
)
<
0
){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"MPV_common_init() failed
\n
"
);
return
-
1
;
}
s
->
first_field
=
0
;
h
->
prev_interlaced_frame
=
1
;
...
...
@@ -2284,8 +2288,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
ff_h264_alloc_tables
(
h
);
if
(
!
HAVE_THREADS
||
!
(
s
->
avctx
->
active_thread_type
&
FF_THREAD_SLICE
))
{
if
(
context_init
(
h
)
<
0
)
if
(
context_init
(
h
)
<
0
){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"context_init() failed
\n
"
);
return
-
1
;
}
}
else
{
for
(
i
=
1
;
i
<
s
->
avctx
->
thread_count
;
i
++
)
{
H264Context
*
c
;
...
...
@@ -2300,8 +2306,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
}
for
(
i
=
0
;
i
<
s
->
avctx
->
thread_count
;
i
++
)
if
(
context_init
(
h
->
thread_context
[
i
])
<
0
)
if
(
context_init
(
h
->
thread_context
[
i
])
<
0
){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"context_init() failed
\n
"
);
return
-
1
;
}
}
}
...
...
@@ -2597,8 +2605,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Cannot parallelize deblocking type 1, decoding such frames in sequential order
\n
"
);
h0
->
single_decode_warning
=
1
;
}
if
(
h
!=
h0
)
return
1
;
// deblocking switched inside frame
if
(
h
!=
h0
){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"deblocking switched inside frame
\n
"
);
return
1
;
}
}
}
h
->
qp_thresh
=
15
+
52
-
FFMIN
(
h
->
slice_alpha_c0_offset
,
h
->
slice_beta_offset
)
-
FFMAX3
(
0
,
h
->
pps
.
chroma_qp_index_offset
[
0
],
h
->
pps
.
chroma_qp_index_offset
[
1
]);
...
...
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