Ticket #693: transcodePatch.diff
File transcodePatch.diff, 1.3 KB (added by , 18 years ago) |
---|
-
programs/mythtranscode/mpeg2fix.cpp
2 2 //support missing audio frames 3 3 //support analyze-only mode 4 4 5 #include "config.h" 5 6 #include "mpeg2fix.h" 6 7 7 8 #include <stdlib.h> … … 13 14 #include <netinet/in.h> 14 15 #include <getopt.h> 15 16 #include <stdint.h> 17 #ifndef CONFIG_DARWIN 16 18 #include <malloc.h> 19 #endif 17 20 18 21 19 22 #define ATTR_ALIGN(align) __attribute__ ((__aligned__ (align))) … … 280 283 281 284 mx.priv = (void *)this; 282 285 283 fd_out = open64(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); 286 #ifndef CONFIG_DARWIN 287 fd_out = open64(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); 288 #else 289 fd_out = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); 290 #endif 284 291 285 292 //await buffer fill 286 293 pthread_mutex_lock(&mutex); … … 818 825 819 826 picture = avcodec_alloc_frame(); 820 827 821 pkt->data = (uint8_t *)memalign(16, outbuf_size); 828 #ifndef CONFIG_DARWIN 829 pkt->data = (uint8_t *)memalign(16, outbuf_size); 830 #else 831 pkt->data = (uint8_t *)malloc(outbuf_size); 832 #endif 822 833 823 834 picture->data[0] = info->display_fbuf->buf[0]; 824 835 picture->data[1] = info->display_fbuf->buf[1];