winlin

fix bug of package for arm

@@ -504,7 +504,10 @@ if [ $SRS_FFMPEG = YES ]; then @@ -504,7 +504,10 @@ if [ $SRS_FFMPEG = YES ]; then
504 if [ ! -f ${SRS_OBJS}/ffmpeg/bin/ffmpeg ]; then echo "build ffmpeg-2.1 failed."; exit -1; fi 504 if [ ! -f ${SRS_OBJS}/ffmpeg/bin/ffmpeg ]; then echo "build ffmpeg-2.1 failed."; exit -1; fi
505 fi 505 fi
506 506
507 -if [ $SRS_FFMPEG = YES ]; then 507 +__SRS_FFMPEG=NO
  508 +if [ $SRS_TRANSCODE = YES ]; then __SRS_FFMPEG=YES; fi
  509 +if [ $SRS_INGEST = YES ]; then __SRS_FFMPEG=YES;fi
  510 +if [ $__SRS_FFMPEG = YES ]; then
508 echo "#define SRS_FFMPEG" >> $SRS_AUTO_HEADERS_H 511 echo "#define SRS_FFMPEG" >> $SRS_AUTO_HEADERS_H
509 else 512 else
510 echo "#undef SRS_FFMPEG" >> $SRS_AUTO_HEADERS_H 513 echo "#undef SRS_FFMPEG" >> $SRS_AUTO_HEADERS_H