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
3b1c0f68
Commit
3b1c0f68
authored
Nov 26, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videodec: move new_pred from MpegEncContext to Mpeg4DecContext
parent
e89247de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
mpeg4video.h
libavcodec/mpeg4video.h
+2
-0
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+3
-3
mpegvideo.h
libavcodec/mpegvideo.h
+0
-1
No files found.
libavcodec/mpeg4video.h
View file @
3b1c0f68
...
@@ -73,6 +73,8 @@ typedef struct Mpeg4DecContext {
...
@@ -73,6 +73,8 @@ typedef struct Mpeg4DecContext {
///< time distance of first I -> B, used for interlaced b frames
///< time distance of first I -> B, used for interlaced b frames
int
t_frame
;
int
t_frame
;
int
new_pred
;
/* bug workarounds */
/* bug workarounds */
int
divx_version
;
int
divx_version
;
int
divx_build
;
int
divx_build
;
...
...
libavcodec/mpeg4videodec.c
View file @
3b1c0f68
...
@@ -1940,8 +1940,8 @@ no_cplx_est:
...
@@ -1940,8 +1940,8 @@ no_cplx_est:
ctx
->
rvlc
=
get_bits1
(
gb
);
ctx
->
rvlc
=
get_bits1
(
gb
);
if
(
vo_ver_id
!=
1
)
{
if
(
vo_ver_id
!=
1
)
{
s
->
new_pred
=
get_bits1
(
gb
);
ctx
->
new_pred
=
get_bits1
(
gb
);
if
(
s
->
new_pred
)
{
if
(
ctx
->
new_pred
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"new pred not supported
\n
"
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"new pred not supported
\n
"
);
skip_bits
(
gb
,
2
);
/* requested upstream message type */
skip_bits
(
gb
,
2
);
/* requested upstream message type */
skip_bits1
(
gb
);
/* newpred segment type */
skip_bits1
(
gb
);
/* newpred segment type */
...
@@ -1950,7 +1950,7 @@ no_cplx_est:
...
@@ -1950,7 +1950,7 @@ no_cplx_est:
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"reduced resolution VOP not supported
\n
"
);
"reduced resolution VOP not supported
\n
"
);
}
else
{
}
else
{
s
->
new_pred
=
0
;
ctx
->
new_pred
=
0
;
}
}
s
->
scalability
=
get_bits1
(
gb
);
s
->
scalability
=
get_bits1
(
gb
);
...
...
libavcodec/mpegvideo.h
View file @
3b1c0f68
...
@@ -592,7 +592,6 @@ typedef struct MpegEncContext {
...
@@ -592,7 +592,6 @@ typedef struct MpegEncContext {
int
scalability
;
int
scalability
;
int
hierachy_type
;
int
hierachy_type
;
int
enhancement_type
;
int
enhancement_type
;
int
new_pred
;
int
aspect_ratio_info
;
//FIXME remove
int
aspect_ratio_info
;
//FIXME remove
int
sprite_warping_accuracy
;
int
sprite_warping_accuracy
;
int
data_partitioning
;
///< data partitioning flag from header
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