Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
e44b5892
Commit
e44b5892
authored
10 years ago
by
Anton Khirnov
Browse files
Options
Downloads
Patches
Plain Diff
lavc: deprecate unused AVCodecContext.stream_codec_tag
parent
f771b3ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libavcodec/avcodec.h
+4
-4
4 additions, 4 deletions
libavcodec/avcodec.h
libavcodec/mpegvideo.c
+0
-2
0 additions, 2 deletions
libavcodec/mpegvideo.c
libavcodec/options_table.h
+2
-0
2 additions, 0 deletions
libavcodec/options_table.h
libavcodec/version.h
+3
-0
3 additions, 0 deletions
libavcodec/version.h
with
9 additions
and
6 deletions
libavcodec/avcodec.h
+
4
−
4
View file @
e44b5892
...
...
@@ -1081,13 +1081,13 @@ typedef struct AVCodecContext {
*/
unsigned
int
codec_tag
;
#if FF_API_STREAM_CODEC_TAG
/**
* fourcc from the AVI stream header (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
* This is used to work around some encoder bugs.
* - encoding: unused
* - decoding: Set by user, will be converted to uppercase by libavcodec during init.
* @deprecated this field is unused
*/
attribute_deprecated
unsigned
int
stream_codec_tag
;
#endif
void
*
priv_data
;
...
...
This diff is collapsed.
Click to expand it.
libavcodec/mpegvideo.c
+
0
−
2
View file @
e44b5892
...
...
@@ -1288,8 +1288,6 @@ av_cold int ff_mpv_common_init(MpegEncContext *s)
/* convert fourcc to upper case */
s
->
codec_tag
=
avpriv_toupper4
(
s
->
avctx
->
codec_tag
);
s
->
stream_codec_tag
=
avpriv_toupper4
(
s
->
avctx
->
stream_codec_tag
);
FF_ALLOCZ_OR_GOTO
(
s
->
avctx
,
s
->
picture
,
MAX_PICTURE_COUNT
*
sizeof
(
Picture
),
fail
);
for
(
i
=
0
;
i
<
MAX_PICTURE_COUNT
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
libavcodec/options_table.h
+
2
−
0
View file @
e44b5892
...
...
@@ -308,7 +308,9 @@ static const AVOption avcodec_options[] = {
{
"simple"
,
"use mbcmp (default)"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_MB_DECISION_SIMPLE
},
INT_MIN
,
INT_MAX
,
V
|
E
,
"mbd"
},
{
"bits"
,
"use fewest bits"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_MB_DECISION_BITS
},
INT_MIN
,
INT_MAX
,
V
|
E
,
"mbd"
},
{
"rd"
,
"use best rate distortion"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_MB_DECISION_RD
},
INT_MIN
,
INT_MAX
,
V
|
E
,
"mbd"
},
#if FF_API_STREAM_CODEC_TAG
{
"stream_codec_tag"
,
NULL
,
OFFSET
(
stream_codec_tag
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
},
#endif
{
"sc_threshold"
,
"scene change threshold"
,
OFFSET
(
scenechange_threshold
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
#if FF_API_MPV_OPT
{
"lmin"
,
"deprecated, use encoder private options instead"
,
OFFSET
(
lmin
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
,
V
|
E
},
...
...
This diff is collapsed.
Click to expand it.
libavcodec/version.h
+
3
−
0
View file @
e44b5892
...
...
@@ -162,5 +162,8 @@
#ifndef FF_API_MPV_OPT
#define FF_API_MPV_OPT (LIBAVCODEC_VERSION_MAJOR < 59)
#endif
#ifndef FF_API_STREAM_CODEC_TAG
#define FF_API_STREAM_CODEC_TAG (LIBAVCODEC_VERSION_MAJOR < 59)
#endif
#endif
/* AVCODEC_VERSION_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment