Certain protocols such as http make use of the mime information to
deliver it to the application.
---

I'm trying to think if there are other options that should be forwarded,
since that would warrant providing a function to copy over all the useful
information.

 avconv_opt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/avconv_opt.c b/avconv_opt.c
index 2d06912..e592ccb 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -1624,6 +1624,9 @@ loop_end:
         /* test if it already exists to avoid losing precious files */
         assert_file_overwrite(filename);

+        av_dict_set(&of->opts, "content_type", oc->oformat->mime_type,
+                    AV_DICT_DONT_OVERWRITE);
+
         /* open the file */
         if ((err = avio_open2(&oc->pb, filename, AVIO_FLAG_WRITE,
                               &oc->interrupt_callback,
--
1.9.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to