Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
5707f03f
Commit
5707f03f
authored
Aug 31, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: use AV_PIX_FMT_PAL8 iso PIX_FMT_PAL8
parent
ef001ee4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/codec/avcodec/chroma.c
modules/codec/avcodec/chroma.c
+1
-1
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+2
-2
No files found.
modules/codec/avcodec/chroma.c
View file @
5707f03f
...
...
@@ -132,7 +132,7 @@ static const struct
{
VLC_CODEC_GREY
,
PIX_FMT_GRAY8
,
0
,
0
,
0
},
/* Paletized RGB */
{
VLC_CODEC_RGBP
,
PIX_FMT_PAL8
,
0
,
0
,
0
},
{
VLC_CODEC_RGBP
,
AV_
PIX_FMT_PAL8
,
0
,
0
,
0
},
{
VLC_CODEC_GBR_PLANAR
,
AV_PIX_FMT_GBRP
,
0
,
0
,
0
},
{
VLC_CODEC_GBR_PLANAR_9L
,
AV_PIX_FMT_GBRP9LE
,
0
,
0
,
0
},
...
...
modules/codec/avcodec/video.c
View file @
5707f03f
...
...
@@ -244,7 +244,7 @@ static void lavc_CopyPicture(decoder_t *dec, picture_t *pic, AVFrame *frame)
}
}
if
(
unlikely
(
sys
->
p_context
->
pix_fmt
==
PIX_FMT_PAL8
))
if
(
unlikely
(
sys
->
p_context
->
pix_fmt
==
AV_
PIX_FMT_PAL8
))
{
if
(
pic
->
format
.
p_palette
==
NULL
)
pic
->
format
.
p_palette
=
calloc
(
1
,
sizeof
(
video_palette_t
));
...
...
@@ -980,7 +980,7 @@ static int lavc_dr_GetFrame(struct AVCodecContext *ctx, AVFrame *frame,
decoder_t
*
dec
=
(
decoder_t
*
)
ctx
->
opaque
;
decoder_sys_t
*
sys
=
dec
->
p_sys
;
if
(
ctx
->
pix_fmt
==
PIX_FMT_PAL8
)
if
(
ctx
->
pix_fmt
==
AV_
PIX_FMT_PAL8
)
goto
error
;
int
width
=
frame
->
width
;
...
...
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