Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b6e4d2a1
Commit
b6e4d2a1
authored
May 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* video: set avtcx->codec_tag
parent
92a52bb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+7
-0
No files found.
modules/codec/ffmpeg/video.c
View file @
b6e4d2a1
...
...
@@ -91,6 +91,12 @@ static void ffmpeg_CopyPicture ( decoder_t *, picture_t *, AVFrame * );
static
int
ffmpeg_GetFrameBuf
(
struct
AVCodecContext
*
,
AVFrame
*
);
static
void
ffmpeg_ReleaseFrameBuf
(
struct
AVCodecContext
*
,
AVFrame
*
);
static
uint32_t
ffmpeg_CodecTag
(
vlc_fourcc_t
fcc
)
{
uint8_t
*
p
=
(
uint8_t
*
)
&
fcc
;
return
p
[
0
]
|
(
p
[
1
]
<<
8
)
|
(
p
[
2
]
<<
16
)
|
(
p
[
3
]
<<
24
);
}
/*****************************************************************************
* Local Functions
*****************************************************************************/
...
...
@@ -215,6 +221,7 @@ int E_(InitVideoDec)( decoder_t *p_dec, AVCodecContext *p_context,
p_sys
->
p_ff_pic
=
avcodec_alloc_frame
();
/* ***** Fill p_context with init values ***** */
p_sys
->
p_context
->
codec_tag
=
ffmpeg_CodecTag
(
p_dec
->
fmt_in
.
i_codec
);
p_sys
->
p_context
->
width
=
p_dec
->
fmt_in
.
video
.
i_width
;
p_sys
->
p_context
->
height
=
p_dec
->
fmt_in
.
video
.
i_height
;
p_sys
->
p_context
->
bits_per_sample
=
p_dec
->
fmt_in
.
video
.
i_bits_per_pixel
;
...
...
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