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
58c120a9
Commit
58c120a9
authored
Nov 26, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videodec: move scalability from MpegEncContext to Mpeg4DecContext
parent
6e81597d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
mpeg4video.h
libavcodec/mpeg4video.h
+1
-0
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+4
-4
mpegvideo.h
libavcodec/mpegvideo.h
+0
-1
No files found.
libavcodec/mpeg4video.h
View file @
58c120a9
...
...
@@ -75,6 +75,7 @@ typedef struct Mpeg4DecContext {
int
new_pred
;
int
enhancement_type
;
int
scalability
;
/* bug workarounds */
int
divx_version
;
...
...
libavcodec/mpeg4videodec.c
View file @
58c120a9
...
...
@@ -1953,9 +1953,9 @@ no_cplx_est:
ctx
->
new_pred
=
0
;
}
s
->
scalability
=
get_bits1
(
gb
);
ctx
->
scalability
=
get_bits1
(
gb
);
if
(
s
->
scalability
)
{
if
(
ctx
->
scalability
)
{
GetBitContext
bak
=
*
gb
;
int
h_sampling_factor_n
;
int
h_sampling_factor_m
;
...
...
@@ -1975,7 +1975,7 @@ no_cplx_est:
v_sampling_factor_n
==
0
||
v_sampling_factor_m
==
0
)
{
/* illegal scalability header (VERY broken encoder),
* trying to workaround */
s
->
scalability
=
0
;
ctx
->
scalability
=
0
;
*
gb
=
bak
;
}
else
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"scalability not supported
\n
"
);
...
...
@@ -2249,7 +2249,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx
->
cplx_estimation_trash_b
);
}
if
(
!
s
->
scalability
)
{
if
(
!
ctx
->
scalability
)
{
if
(
ctx
->
shape
!=
RECT_SHAPE
&&
s
->
pict_type
!=
AV_PICTURE_TYPE_I
)
skip_bits1
(
gb
);
// vop shape coding type
}
else
{
...
...
libavcodec/mpegvideo.h
View file @
58c120a9
...
...
@@ -589,7 +589,6 @@ typedef struct MpegEncContext {
int
mcsel
;
int
quant_precision
;
int
quarter_sample
;
///< 1->qpel, 0->half pel ME/MC
int
scalability
;
int
aspect_ratio_info
;
//FIXME remove
int
sprite_warping_accuracy
;
int
data_partitioning
;
///< data partitioning flag from header
...
...
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