Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
dded4cb2
Commit
dded4cb2
authored
Jun 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: fix support of unofficial pix_fmt extensions of jpeg
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
465a72b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
utils.c
libavcodec/utils.c
+3
-1
No files found.
libavcodec/utils.c
View file @
dded4cb2
...
@@ -883,7 +883,9 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
...
@@ -883,7 +883,9 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
for
(
i
=
0
;
avctx
->
codec
->
pix_fmts
[
i
]
!=
PIX_FMT_NONE
;
i
++
)
for
(
i
=
0
;
avctx
->
codec
->
pix_fmts
[
i
]
!=
PIX_FMT_NONE
;
i
++
)
if
(
avctx
->
pix_fmt
==
avctx
->
codec
->
pix_fmts
[
i
])
if
(
avctx
->
pix_fmt
==
avctx
->
codec
->
pix_fmts
[
i
])
break
;
break
;
if
(
avctx
->
codec
->
pix_fmts
[
i
]
==
PIX_FMT_NONE
)
{
if
(
avctx
->
codec
->
pix_fmts
[
i
]
==
PIX_FMT_NONE
&&
!
((
avctx
->
codec_id
==
CODEC_ID_MJPEG
||
avctx
->
codec_id
==
CODEC_ID_LJPEG
)
&&
avctx
->
strict_std_compliance
<=
FF_COMPLIANCE_UNOFFICIAL
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Specified pix_fmt is not supported
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Specified pix_fmt is not supported
\n
"
);
ret
=
AVERROR
(
EINVAL
);
ret
=
AVERROR
(
EINVAL
);
goto
free_and_end
;
goto
free_and_end
;
...
...
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