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
da55ee6c
Commit
da55ee6c
authored
13 years ago
by
Jason Garrett-Glaser
Browse files
Options
Downloads
Patches
Plain Diff
Add new yuv444 pixfmts to avcodec_align_dimensions2
Fixes draw_edges crashes with high-bit-depth 4:4:4 decoding.
parent
4578435f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/utils.c
+4
-0
4 additions, 0 deletions
libavcodec/utils.c
with
4 additions
and
0 deletions
libavcodec/utils.c
+
4
−
0
View file @
da55ee6c
...
@@ -141,6 +141,10 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int l
...
@@ -141,6 +141,10 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int l
case
PIX_FMT_YUV420P10BE
:
case
PIX_FMT_YUV420P10BE
:
case
PIX_FMT_YUV422P10LE
:
case
PIX_FMT_YUV422P10LE
:
case
PIX_FMT_YUV422P10BE
:
case
PIX_FMT_YUV422P10BE
:
case
PIX_FMT_YUV444P9LE
:
case
PIX_FMT_YUV444P9BE
:
case
PIX_FMT_YUV444P10LE
:
case
PIX_FMT_YUV444P10BE
:
w_align
=
16
;
//FIXME check for non mpeg style codecs and use less alignment
w_align
=
16
;
//FIXME check for non mpeg style codecs and use less alignment
h_align
=
16
;
h_align
=
16
;
if
(
s
->
codec_id
==
CODEC_ID_MPEG2VIDEO
||
s
->
codec_id
==
CODEC_ID_MJPEG
||
s
->
codec_id
==
CODEC_ID_AMV
||
s
->
codec_id
==
CODEC_ID_THP
||
s
->
codec_id
==
CODEC_ID_H264
)
if
(
s
->
codec_id
==
CODEC_ID_MPEG2VIDEO
||
s
->
codec_id
==
CODEC_ID_MJPEG
||
s
->
codec_id
==
CODEC_ID_AMV
||
s
->
codec_id
==
CODEC_ID_THP
||
s
->
codec_id
==
CODEC_ID_H264
)
...
...
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