Fix a crash in copySubtitleSample.

This commit is contained in:
Damiano Galassi committed 2016-08-31 15:02:45 +02:00
1 parent b841840561
commit dbb759bbd8
4 files changed
+6 -15

No files matched your search

+2 -2
View File
@@ -61,8 +61,8 @@ unsigned ParseSubTime(const char *time, unsigned secondScale, BOOL hasSign);
@class MP42SampleBuffer;
MP42SampleBuffer * copySubtitleSample(MP4TrackId subtitleTrackId, NSString *string, MP4Duration duration, BOOL forced, BOOL verticalPlacement, BOOL styles, CGSize trackSize, int top);
MP42SampleBuffer * copyEmptySubtitleSample(MP4TrackId subtitleTrackId, MP4Duration duration, BOOL forced);
MP42SampleBuffer * copySubtitleSample(MP4TrackId subtitleTrackId, NSString *string, MP4Duration duration, BOOL forced, BOOL verticalPlacement, BOOL styles, CGSize trackSize, int top) NS_RETURNS_RETAINED;
MP42SampleBuffer * copyEmptySubtitleSample(MP4TrackId subtitleTrackId, MP4Duration duration, BOOL forced) NS_RETURNS_RETAINED;
typedef struct {
// color format is 32-bit ARGB