* [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes
@ 2022-02-11 13:11 Andreas Schneider
2022-02-11 13:11 ` [FFmpeg-devel] [PATCH 1/2] avcodec/exif: Include bytestream.h for GetByteContext Andreas Schneider
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andreas Schneider @ 2022-02-11 13:11 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Schneider
Just some small header cleanup.
Andreas Schneider (2):
avcodec/exif: Include bytestream.h for GetByteContext
avcodec/exif: Include tiff_common.h only where needed
libavcodec/exif.c | 1 +
libavcodec/exif.h | 2 +-
libavcodec/mjpegdec.c | 1 +
libavcodec/webp.c | 1 +
4 files changed, 4 insertions(+), 1 deletion(-)
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* [FFmpeg-devel] [PATCH 1/2] avcodec/exif: Include bytestream.h for GetByteContext
2022-02-11 13:11 [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes Andreas Schneider
@ 2022-02-11 13:11 ` Andreas Schneider
2022-02-11 13:11 ` [FFmpeg-devel] [PATCH 2/2] avcodec/exif: Don't include tiff.h in exif.h Andreas Schneider
2022-02-14 10:43 ` [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes Andreas Rheinhardt
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schneider @ 2022-02-11 13:11 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Schneider
bytestream.h should be directly included for GetByteContext and not
rely on other headers to include it. It could be removed from there.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
---
libavcodec/exif.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/exif.h b/libavcodec/exif.h
index 4db84a1c2f..310f6e8e64 100644
--- a/libavcodec/exif.h
+++ b/libavcodec/exif.h
@@ -30,6 +30,7 @@
#include <stdint.h>
#include "libavutil/dict.h"
+#include "bytestream.h"
#include "tiff.h"
#define EXIF_MAX_IFD_RECURSION 2
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* [FFmpeg-devel] [PATCH 2/2] avcodec/exif: Don't include tiff.h in exif.h
2022-02-11 13:11 [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes Andreas Schneider
2022-02-11 13:11 ` [FFmpeg-devel] [PATCH 1/2] avcodec/exif: Include bytestream.h for GetByteContext Andreas Schneider
@ 2022-02-11 13:11 ` Andreas Schneider
2022-02-14 10:43 ` [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes Andreas Rheinhardt
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schneider @ 2022-02-11 13:11 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Schneider
The exif.h header doesn't use anything from tiff.h. We also just need
to include tiff_common.h in .c files where it actually used.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
---
libavcodec/exif.c | 1 +
libavcodec/exif.h | 1 -
libavcodec/mjpegdec.c | 1 +
libavcodec/webp.c | 1 +
4 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/exif.c b/libavcodec/exif.c
index 0b656fd09b..9485b24b8e 100644
--- a/libavcodec/exif.c
+++ b/libavcodec/exif.c
@@ -26,6 +26,7 @@
*/
#include "exif.h"
+#include "tiff_common.h"
static const char *exif_get_tag_name(uint16_t id)
diff --git a/libavcodec/exif.h b/libavcodec/exif.h
index 310f6e8e64..ffacba7e66 100644
--- a/libavcodec/exif.h
+++ b/libavcodec/exif.h
@@ -31,7 +31,6 @@
#include <stdint.h>
#include "libavutil/dict.h"
#include "bytestream.h"
-#include "tiff.h"
#define EXIF_MAX_IFD_RECURSION 2
#define EXIF_TAG_NAME_LENGTH 32
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index a735d2337d..267609d96a 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -50,6 +50,7 @@
#include "tiff.h"
#include "exif.h"
#include "bytestream.h"
+#include "tiff_common.h"
static int init_default_huffman_tables(MJpegDecodeContext *s)
diff --git a/libavcodec/webp.c b/libavcodec/webp.c
index 9e642e050a..148dc02170 100644
--- a/libavcodec/webp.c
+++ b/libavcodec/webp.c
@@ -48,6 +48,7 @@
#include "exif.h"
#include "get_bits.h"
#include "internal.h"
+#include "tiff_common.h"
#include "thread.h"
#include "vp8.h"
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes
2022-02-11 13:11 [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes Andreas Schneider
2022-02-11 13:11 ` [FFmpeg-devel] [PATCH 1/2] avcodec/exif: Include bytestream.h for GetByteContext Andreas Schneider
2022-02-11 13:11 ` [FFmpeg-devel] [PATCH 2/2] avcodec/exif: Don't include tiff.h in exif.h Andreas Schneider
@ 2022-02-14 10:43 ` Andreas Rheinhardt
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Rheinhardt @ 2022-02-14 10:43 UTC (permalink / raw)
To: ffmpeg-devel
Andreas Schneider:
> Just some small header cleanup.
>
> Andreas Schneider (2):
> avcodec/exif: Include bytestream.h for GetByteContext
> avcodec/exif: Include tiff_common.h only where needed
>
> libavcodec/exif.c | 1 +
> libavcodec/exif.h | 2 +-
> libavcodec/mjpegdec.c | 1 +
> libavcodec/webp.c | 1 +
> 4 files changed, 4 insertions(+), 1 deletion(-)
>
Thanks, applied.
- Andreas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-02-14 10:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11 13:11 [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes Andreas Schneider
2022-02-11 13:11 ` [FFmpeg-devel] [PATCH 1/2] avcodec/exif: Include bytestream.h for GetByteContext Andreas Schneider
2022-02-11 13:11 ` [FFmpeg-devel] [PATCH 2/2] avcodec/exif: Don't include tiff.h in exif.h Andreas Schneider
2022-02-14 10:43 ` [FFmpeg-devel] [PATCH 0/2] Some cleanup for header includes Andreas Rheinhardt
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git