فهرست منبع

VLCStreamOutput: minor clean

Felix Paul Kühne 11 سال پیش
والد
کامیت
2fb51c5dac
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      Sources/VLCStreamOutput.m

+ 3 - 3
Sources/VLCStreamOutput.m

@@ -74,18 +74,18 @@
                                             [NSDictionary dictionaryWithObjectsAndKeys:
                                                 @"h264", @"videoCodec",
                                                 @"1024",  @"videoBitrate", // max by Apple: 1.5 mbps
-                                                @"mp4a", @"audioCodec",
+                                                @"mp3", @"audioCodec",
                                                 @"128", @"audioBitrate", // max by Apple: 160 kbps
                                                 @"2",   @"channels",
                                                 @"640", @"width", // max by Apple: do.
-                                                @"480", @"canvasHeight", // max by Apple: do.
+                                                @"480", @"height", // max by Apple: do.
                                                 @"Yes", @"audio-sync",
                                                 nil
                                             ], @"transcodingOptions",
                                             [NSDictionary dictionaryWithObjectsAndKeys:
                                                 @"mp4", @"muxer",
                                                 @"file", @"access",
-                                                [[filePath copy] autorelease], @"destination",
+                                                [[NSURL URLWithString:filePath] absoluteString], @"destination",
                                                 nil
                                             ], @"outputOptions",
                                             nil