Enabled more warnings, switched the deployment target to 10.7 and minor code cleanup

This commit is contained in:
Damiano Galassi committed 2015-08-24 17:32:42 +02:00
1 parent efc0e794c0
commit e5095a611a
33 files changed
+167 -258

No files matched your search

+3 -3
View File
@@ -261,7 +261,7 @@ void FFInitFFmpeg() {
if (!sampleBuffer)
break;
int ret, got_sub, i;
int ret, got_sub;
uint32_t *imageData;
BOOL forced = NO;
@@ -283,7 +283,7 @@ void FFInitFFmpeg() {
continue;
}
for (i = 0; i < subtitle.num_rects; i++) {
for (unsigned i = 0; i < subtitle.num_rects; i++) {
AVSubtitleRect *rect = subtitle.rects[i];
NSString *text;
@@ -447,7 +447,7 @@ void FFInitFFmpeg() {
av_freep(&codecData);
}
if (subtitle.rects) {
for (int i = 0; i < subtitle.num_rects; i++) {
for (unsigned i = 0; i < subtitle.num_rects; i++) {
av_freep(&subtitle.rects[i]->pict.data[0]);
av_freep(&subtitle.rects[i]->pict.data[1]);
av_freep(&subtitle.rects[i]);