Selecting a correct order of API call sequences is important

In short, ffmpeg changes its API in recent versions. One of them is marking AVStream.codec as deprecated. On other side, a AVCodecParameters * AVStream.codecpar was added for codec information described in the stream. To decode data read from stream correctly, we must create a AVCodecContext through avcodec_alloc_context3(), copy codec information from AVStream.codecpar to this allocated AVCodecContext, and…

A simple shell script integrated to Xcode to generate and copy architecture adaptive dylib in

if [ “$CONFIGURATION” == “Debug” ]; then    LIBFFMPEG_DIR=”$PROJECT_DIR/../../ffmpeg/ios/universal/debug” else    LIBFFMPEG_DIR=”$PROJECT_DIR/../../ffmpeg/ios/universal/release” fi for a in $ARCHS; do     EXTRACT_ARCHS=”$EXTRACT_ARCHS -extract $a” done lipo “$LIBFFMPEG_DIR/lib/libffmpeg.dylib” $EXTRACT_ARCHS -output “$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/libffmpeg.dylib” if [ “$CODE_SIGNING_REQUIRED” == “YES” ]; then    codesign -s “$EXPANDED_CODE_SIGN_IDENTITY” “$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/libffmpeg.dylib” fi install_name_tool -change “libffmpeg.dylib” “@executable_path/libffmpeg.dylib” “$BUILT_PRODUCTS_DIR/$EXECUTABLE_PATH”

Problem again. Assembly generated by clang or written manually, using integrated assembler or not

Simply, clang has an option ‘–no-integrated-as’ so that the compiler invokes apple’s standalone ‘as’ assembler instead of using clang’s built-in. But, either has its own lost pieces. Without ‘–no-integrated-as’, clang would use its internal assembler. Unfortunately it doesn’t recognize the mnemonic ‘ldmltfd’ With ‘–no-integrated-as’, apple’s ‘as’ assembler reports an error in pesudo instruction ‘.ios_version_min’, which was apparently…