]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mmst.c
Add a space between the else and { in mpegenc.c in the line i added.
[ffmpeg] / libavformat / mmst.c
index e4aea48f985b31485fd4fbf85f90e8d60d680768..57cca5d0d4ed735e29f40f58294ca3850f88e129 100644 (file)
@@ -166,7 +166,7 @@ static void mms_put_utf16(MMSContext *mms, uint8_t *src)
 static int send_time_test_data(MMSTContext *mmst)
 {
     start_command_packet(mmst, CS_PKT_TIMING_DATA_REQUEST);
-    insert_command_prefixes(&mmst->mms, 0xf0f0f0f1, 0x0004000b);
+    insert_command_prefixes(&mmst->mms, 0x00f0f0f0, 0x0004000b);
     return send_command_packet(mmst);
 }
 
@@ -468,6 +468,7 @@ static int mms_close(URLContext *h)
     }
 
     /* free all separately allocated pointers in mms */
+    av_free(mms->streams);
     av_free(mms->asf_header);
     av_freep(&h->priv_data);
 
@@ -546,8 +547,12 @@ static int mms_open(URLContext *h, const char *uri, int flags)
     err = mms_safe_send_recv(mmst, NULL, SC_PKT_ASF_HEADER);
     if (err)
         goto fail;
-    if((mmst->incoming_flags != 0X08) && (mmst->incoming_flags != 0X0C))
+    if((mmst->incoming_flags != 0X08) && (mmst->incoming_flags != 0X0C)) {
+        av_log(NULL, AV_LOG_ERROR,
+               "The server does not support MMST (try MMSH or RTSP)\n");
+        err = AVERROR_NOFMT;
         goto fail;
+    }
     err = ff_mms_asf_header_parser(mms);
     if (err) {
         dprintf(NULL, "asf header parsed failed!\n");