diff --git a/libavformat/internal.h b/libavformat/internal.h
index 2b81f13ec03ea3a7ca43d2359c129c36daa2edb3..15f4dd7848c0253343da9a74272087d0c8a4ab8c 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -26,7 +26,6 @@
 
 char *ff_data_to_hex(char *buf, const uint8_t *src, int size);
 
-void av_set_program_name(AVProgram *program, char *provider_name, char *name);
 void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx);
 
 /**
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 417a7e35e8a278b1ebf24b41e3813d1a1eb65621..7e8398be12c9b9bc8293e39e9d91da6bc1eb4f66 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2354,17 +2354,6 @@ AVProgram *av_new_program(AVFormatContext *ac, int id)
     return program;
 }
 
-void av_set_program_name(AVProgram *program, char *provider_name, char *name)
-{
-    assert(!provider_name == !name);
-    if(name){
-        av_free(program->provider_name);
-        av_free(program->         name);
-        program->provider_name = av_strdup(provider_name);
-        program->         name = av_strdup(         name);
-    }
-}
-
 AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, int64_t start, int64_t end, const char *title)
 {
     AVChapter *chapter = NULL;