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
ad09f525
Commit
ad09f525
authored
Nov 26, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h263dec: remove commented out cruft
parent
bc5abfb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
h263dec.c
libavcodec/h263dec.c
+1
-25
No files found.
libavcodec/h263dec.c
View file @
ad09f525
...
@@ -225,7 +225,6 @@ static int decode_slice(MpegEncContext *s)
...
@@ -225,7 +225,6 @@ static int decode_slice(MpegEncContext *s)
s
->
mv_dir
=
MV_DIR_FORWARD
;
s
->
mv_dir
=
MV_DIR_FORWARD
;
s
->
mv_type
=
MV_TYPE_16X16
;
s
->
mv_type
=
MV_TYPE_16X16
;
// s->mb_skipped = 0;
av_dlog
(
s
,
"%d %d %06X
\n
"
,
av_dlog
(
s
,
"%d %d %06X
\n
"
,
ret
,
get_bits_count
(
&
s
->
gb
),
show_bits
(
&
s
->
gb
,
24
));
ret
,
get_bits_count
(
&
s
->
gb
),
show_bits
(
&
s
->
gb
,
24
));
ret
=
s
->
decode_mb
(
s
,
s
->
block
);
ret
=
s
->
decode_mb
(
s
,
s
->
block
);
...
@@ -292,7 +291,6 @@ static int decode_slice(MpegEncContext *s)
...
@@ -292,7 +291,6 @@ static int decode_slice(MpegEncContext *s)
(
s
->
workaround_bugs
&
FF_BUG_AUTODETECT
)
&&
(
s
->
workaround_bugs
&
FF_BUG_AUTODETECT
)
&&
get_bits_left
(
&
s
->
gb
)
>=
0
&&
get_bits_left
(
&
s
->
gb
)
>=
0
&&
get_bits_left
(
&
s
->
gb
)
<
48
&&
get_bits_left
(
&
s
->
gb
)
<
48
&&
// !s->resync_marker &&
!
s
->
data_partitioning
)
{
!
s
->
data_partitioning
)
{
const
int
bits_count
=
get_bits_count
(
&
s
->
gb
);
const
int
bits_count
=
get_bits_count
(
&
s
->
gb
);
const
int
bits_left
=
s
->
gb
.
size_in_bits
-
bits_count
;
const
int
bits_left
=
s
->
gb
.
size_in_bits
-
bits_count
;
...
@@ -314,8 +312,7 @@ static int decode_slice(MpegEncContext *s)
...
@@ -314,8 +312,7 @@ static int decode_slice(MpegEncContext *s)
}
}
if
(
s
->
workaround_bugs
&
FF_BUG_AUTODETECT
)
{
if
(
s
->
workaround_bugs
&
FF_BUG_AUTODETECT
)
{
if
(
s
->
padding_bug_score
>
-
2
&&
!
s
->
data_partitioning
if
(
s
->
padding_bug_score
>
-
2
&&
!
s
->
data_partitioning
)
/* && (s->divx_version >= 0 || !s->resync_marker) */
)
s
->
workaround_bugs
|=
FF_BUG_NO_PADDING
;
s
->
workaround_bugs
|=
FF_BUG_NO_PADDING
;
else
else
s
->
workaround_bugs
&=
~
FF_BUG_NO_PADDING
;
s
->
workaround_bugs
&=
~
FF_BUG_NO_PADDING
;
...
@@ -472,12 +469,6 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
...
@@ -472,12 +469,6 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
s
->
codec_tag
==
AV_RL32
(
"ZMP4"
)
||
s
->
codec_tag
==
AV_RL32
(
"ZMP4"
)
||
s
->
codec_tag
==
AV_RL32
(
"SIPP"
))
s
->
codec_tag
==
AV_RL32
(
"SIPP"
))
s
->
xvid_build
=
0
;
s
->
xvid_build
=
0
;
#if 0
if (s->codec_tag == AV_RL32("DIVX") && s->vo_type == 0 &&
s->vol_control_parameters == 1 &&
s->padding_bug_score > 0 && s->low_delay) // XVID with modified fourcc
s->xvid_build = 0;
#endif
}
}
if
(
s
->
xvid_build
==
-
1
&&
s
->
divx_version
==
-
1
&&
s
->
lavc_build
==
-
1
)
if
(
s
->
xvid_build
==
-
1
&&
s
->
divx_version
==
-
1
&&
s
->
lavc_build
==
-
1
)
...
@@ -542,21 +533,6 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
...
@@ -542,21 +533,6 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
if
(
s
->
divx_version
>=
0
)
if
(
s
->
divx_version
>=
0
)
s
->
workaround_bugs
|=
FF_BUG_HPEL_CHROMA
;
s
->
workaround_bugs
|=
FF_BUG_HPEL_CHROMA
;
#if 0
if (s->divx_version == 500)
s->padding_bug_score = 256 * 256 * 256 * 64;
/* very ugly XVID padding bug detection FIXME/XXX solve this differently
* Let us hope this at least works. */
if (s->resync_marker == 0 && s->data_partitioning == 0 &&
s->divx_version == -1 && s->codec_id == AV_CODEC_ID_MPEG4 &&
s->vo_type == 0)
s->workaround_bugs |= FF_BUG_NO_PADDING;
// FIXME not sure about the version num but a 4609 file seems ok
if (s->lavc_build < 4609U)
s->workaround_bugs |= FF_BUG_NO_PADDING;
#endif
}
}
if
(
s
->
workaround_bugs
&
FF_BUG_STD_QPEL
)
{
if
(
s
->
workaround_bugs
&
FF_BUG_STD_QPEL
)
{
...
...
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