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
3a13f6bd
Commit
3a13f6bd
authored
22 years ago
by
Zdenek Kabelac
Browse files
Options
Downloads
Patches
Plain Diff
* compile PNG only when ZLIB is available
Originally committed as revision 1609 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2ec23b6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavformat/allformats.c
+2
-0
2 additions, 0 deletions
libavformat/allformats.c
libavformat/avformat.h
+2
-0
2 additions, 0 deletions
libavformat/avformat.h
libavformat/png.c
+2
-0
2 additions, 0 deletions
libavformat/png.c
with
6 additions
and
0 deletions
libavformat/allformats.c
+
2
−
0
View file @
3a13f6bd
...
@@ -75,7 +75,9 @@ void av_register_all(void)
...
@@ -75,7 +75,9 @@ void av_register_all(void)
av_register_image_format
(
&
ppm_image_format
);
av_register_image_format
(
&
ppm_image_format
);
av_register_image_format
(
&
pgmyuv_image_format
);
av_register_image_format
(
&
pgmyuv_image_format
);
av_register_image_format
(
&
yuv_image_format
);
av_register_image_format
(
&
yuv_image_format
);
#ifdef CONFIG_ZLIB
av_register_image_format
(
&
png_image_format
);
av_register_image_format
(
&
png_image_format
);
#endif
av_register_image_format
(
&
jpeg_image_format
);
av_register_image_format
(
&
jpeg_image_format
);
av_register_image_format
(
&
gif_image_format
);
av_register_image_format
(
&
gif_image_format
);
...
...
This diff is collapsed.
Click to expand it.
libavformat/avformat.h
+
2
−
0
View file @
3a13f6bd
...
@@ -253,7 +253,9 @@ extern AVImageFormat pgm_image_format;
...
@@ -253,7 +253,9 @@ extern AVImageFormat pgm_image_format;
extern
AVImageFormat
ppm_image_format
;
extern
AVImageFormat
ppm_image_format
;
extern
AVImageFormat
pgmyuv_image_format
;
extern
AVImageFormat
pgmyuv_image_format
;
extern
AVImageFormat
yuv_image_format
;
extern
AVImageFormat
yuv_image_format
;
#ifdef CONFIG_ZLIB
extern
AVImageFormat
png_image_format
;
extern
AVImageFormat
png_image_format
;
#endif
extern
AVImageFormat
jpeg_image_format
;
extern
AVImageFormat
jpeg_image_format
;
extern
AVImageFormat
gif_image_format
;
extern
AVImageFormat
gif_image_format
;
...
...
This diff is collapsed.
Click to expand it.
libavformat/png.c
+
2
−
0
View file @
3a13f6bd
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
*/
*/
#include
"avformat.h"
#include
"avformat.h"
#ifdef CONFIG_ZLIB
#include
<zlib.h>
#include
<zlib.h>
//#define DEBUG
//#define DEBUG
...
@@ -563,3 +564,4 @@ AVImageFormat png_image_format = {
...
@@ -563,3 +564,4 @@ AVImageFormat png_image_format = {
(
1
<<
PIX_FMT_RGB24
)
|
(
1
<<
PIX_FMT_GRAY8
)
|
(
1
<<
PIX_FMT_MONOBLACK
)
|
(
1
<<
PIX_FMT_PAL8
),
(
1
<<
PIX_FMT_RGB24
)
|
(
1
<<
PIX_FMT_GRAY8
)
|
(
1
<<
PIX_FMT_MONOBLACK
)
|
(
1
<<
PIX_FMT_PAL8
),
png_write
,
png_write
,
};
};
#endif
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