diff mbox series

[FFmpeg-devel] tools: fix const specifier for AVInputFormat

Message ID 20200429110023.30442-1-josh@itanimul.li
State Accepted
Commit d817b57d36795b22dc493ef66e3ed14a583cae49
Headers show
Series [FFmpeg-devel] tools: fix const specifier for AVInputFormat | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Josh Dekker April 29, 2020, 11 a.m. UTC
Signed-off-by: Josh de Kock <josh@itanimul.li>
---
 tools/probetest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

 Small fix for compiler warning caused by my earlier change.

Comments

Michael Niedermayer April 29, 2020, 7:58 p.m. UTC | #1
On Wed, Apr 29, 2020 at 12:00:23PM +0100, Josh de Kock wrote:
> Signed-off-by: Josh de Kock <josh@itanimul.li>
> ---
>  tools/probetest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>  Small fix for compiler warning caused by my earlier change.

LGTM

thx

[...]
Josh Dekker April 30, 2020, 9:26 a.m. UTC | #2
On 29/04/2020 20:58, Michael Niedermayer wrote:
> On Wed, Apr 29, 2020 at 12:00:23PM +0100, Josh de Kock wrote:
>> Signed-off-by: Josh de Kock <josh@itanimul.li>
>> ---
>>   tools/probetest.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>>   Small fix for compiler warning caused by my earlier change.
> 
> LGTM
> 

Thanks, applied.
diff mbox series

Patch

diff --git a/tools/probetest.c b/tools/probetest.c
index cfa309cabd..6f0e002b74 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -66,7 +66,7 @@  static void probe(AVProbeData *pd, int type, int p, int size)
 static void print_times(void)
 {
     int i = 0;
-    AVInputFormat *fmt = NULL;
+    const AVInputFormat *fmt = NULL;
     void *fmt_opaque = NULL;
 
     while ((fmt = av_demuxer_iterate(&fmt_opaque))) {