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
0842d589
Commit
0842d589
authored
Oct 17, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: use avpriv_ prefix for ff_toupper4.
It's used in lavf.
parent
9f51c682
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
internal.h
libavcodec/internal.h
+1
-1
mpegvideo.c
libavcodec/mpegvideo.c
+2
-2
utils.c
libavcodec/utils.c
+1
-1
utils.c
libavformat/utils.c
+2
-2
No files found.
libavcodec/internal.h
View file @
0842d589
...
...
@@ -53,6 +53,6 @@ AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt);
*/
int
ff_match_2uint16
(
const
uint16_t
(
*
tab
)[
2
],
int
size
,
int
a
,
int
b
);
unsigned
int
ff
_toupper4
(
unsigned
int
x
);
unsigned
int
avpriv
_toupper4
(
unsigned
int
x
);
#endif
/* AVCODEC_INTERNAL_H */
libavcodec/mpegvideo.c
View file @
0842d589
...
...
@@ -646,9 +646,9 @@ av_cold int MPV_common_init(MpegEncContext *s)
yc_size
=
y_size
+
2
*
c_size
;
/* convert fourcc to upper case */
s
->
codec_tag
=
ff
_toupper4
(
s
->
avctx
->
codec_tag
);
s
->
codec_tag
=
avpriv
_toupper4
(
s
->
avctx
->
codec_tag
);
s
->
stream_codec_tag
=
ff
_toupper4
(
s
->
avctx
->
stream_codec_tag
);
s
->
stream_codec_tag
=
avpriv
_toupper4
(
s
->
avctx
->
stream_codec_tag
);
s
->
avctx
->
coded_frame
=
(
AVFrame
*
)
&
s
->
current_picture
;
...
...
libavcodec/utils.c
View file @
0842d589
...
...
@@ -1269,7 +1269,7 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op))
return
0
;
}
unsigned
int
ff
_toupper4
(
unsigned
int
x
)
unsigned
int
avpriv
_toupper4
(
unsigned
int
x
)
{
return
toupper
(
x
&
0xFF
)
+
(
toupper
((
x
>>
8
)
&
0xFF
)
<<
8
)
...
...
libavformat/utils.c
View file @
0842d589
...
...
@@ -2148,7 +2148,7 @@ enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag)
return
tags
[
i
].
id
;
}
for
(
i
=
0
;
tags
[
i
].
id
!=
CODEC_ID_NONE
;
i
++
)
{
if
(
ff_toupper4
(
tag
)
==
ff
_toupper4
(
tags
[
i
].
tag
))
if
(
avpriv_toupper4
(
tag
)
==
avpriv
_toupper4
(
tags
[
i
].
tag
))
return
tags
[
i
].
id
;
}
return
CODEC_ID_NONE
;
...
...
@@ -2807,7 +2807,7 @@ static int validate_codec_tag(AVFormatContext *s, AVStream *st)
for
(
n
=
0
;
s
->
oformat
->
codec_tag
[
n
];
n
++
)
{
avctag
=
s
->
oformat
->
codec_tag
[
n
];
while
(
avctag
->
id
!=
CODEC_ID_NONE
)
{
if
(
ff_toupper4
(
avctag
->
tag
)
==
ff
_toupper4
(
st
->
codec
->
codec_tag
))
{
if
(
avpriv_toupper4
(
avctag
->
tag
)
==
avpriv
_toupper4
(
st
->
codec
->
codec_tag
))
{
id
=
avctag
->
id
;
if
(
id
==
st
->
codec
->
codec_id
)
return
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