Re: [FFmpeg-devel] [PATCH 1/4] fftools/ffprobe: Don't cast const away needlessly

2024-02-23 Thread Andreas Rheinhardt
Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt 
> ---
>  fftools/ffprobe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
> index aa1153e709..95643f9a23 100644
> --- a/fftools/ffprobe.c
> +++ b/fftools/ffprobe.c
> @@ -789,7 +789,7 @@ static inline int validate_string(WriterContext *wctx, 
> char **dstp, const char *
>  av_bprint_init(, 0, AV_BPRINT_SIZE_UNLIMITED);
>  
>  endp = src + strlen(src);
> -for (p = (uint8_t *)src; *p;) {
> +for (p = src; *p;) {
>  uint32_t code;
>  int invalid = 0;
>  const uint8_t *p0 = p;

Will apply this patchset tomorrow unless there are objections.

- 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-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] [PATCH 1/4] fftools/ffprobe: Don't cast const away needlessly

2024-02-21 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt 
---
 fftools/ffprobe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index aa1153e709..95643f9a23 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -789,7 +789,7 @@ static inline int validate_string(WriterContext *wctx, char 
**dstp, const char *
 av_bprint_init(, 0, AV_BPRINT_SIZE_UNLIMITED);
 
 endp = src + strlen(src);
-for (p = (uint8_t *)src; *p;) {
+for (p = src; *p;) {
 uint32_t code;
 int invalid = 0;
 const uint8_t *p0 = p;
-- 
2.40.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-requ...@ffmpeg.org with subject "unsubscribe".