This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch mystr { | |
case "a", "b", "c", "d", "e": | |
default: | |
dostuff() | |
} | |
// versus | |
if myster != "a" && mystr != "=" && mystr != "c" && mystr != "d" && mystr != "e" { | |
dostuff() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib\libclang.lib lib\clangARCMigrate.lib lib\clangRewriteCore.lib lib\clangFrontend.lib lib\clangDriver.lib lib\clangSerialization.lib lib\clangParse.lib lib\clangSema.lib lib\clangEdit.lib lib\clangAnalysis.lib lib\clangAST.lib lib\clangLex.lib lib\clangBasic.lib lib\LLVMMC.lib lib\LLVMMCParser.lib lib\LLVMObject.lib lib\LLVMSupport.lib ;ib\LLVMBitstreamReader.lib lib\LLVMBitstreamWriter.lib lib\shell32.lib lib\Advapi32.lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Replace with whatever versions you need | |
ZEN_VERSION=0.4.29 | |
LIB_VERSION=0.7.63 | |
MED_VERSION=0.7.63 | |
PREFIX=/usr/local | |
wget http://mediaarea.net/download/source/libzen/${ZEN_VERSION}/libzen_${ZEN_VERSION}.tar.bz2 | |
wget http://mediaarea.net/download/source/libmediainfo/${LIB_VERSION}/libmediainfo_${LIB_VERSION}.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use bigint; | |
use File::Spec; | |
use JSON::XS; | |
my $filename = $ARGV[0]; | |
my $data = `ffprobe -show_streams -show_format -show_frames -of json $filename`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Package cref implements a way to hose your Go garbage collection. | |
package cref | |
import ( | |
"fmt" | |
"unsafe" | |
) | |
/* | |
#include <pthread.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <inttypes.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <lsmash.h> | |
typedef struct ts { | |
uint64_t dts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
draw.c:30: error: CHECKERS_DEAD_CODE | |
Node not visited: 20 | |
28. static inline char get_char(char c) | |
29. { | |
30. > if (c > 31 && c < 127) | |
31. return c; | |
32. else | |
33. | |
Original code here: https://github.com/dwbuiten/bxd/blob/master/draw.c#L28-34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
draw.c:30: error: CHECKERS_DEAD_CODE | |
Node not visited: 20 | |
28. static inline char get_char(char c) | |
29. { | |
30. > if (c > 31 && c < 127) | |
31. return c; | |
32. else | |
33. | |
Original code is here: https://github.com/dwbuiten/bxd/blob/master/draw.c#L28-34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is pseudocode / example to explain what kind of implementation I mean. | |
// I have not checked it for off-by-one errors, 100% accurate C compliance, etc. | |
// It's just to show what I mean, implementation wise. | |
#define SOME_DEFAULT_SIZE 20 | |
char *vlc_uri_compose(const vlc_url_t *uri) | |
{ | |
char *buf, *enc; | |
size_t len = SOME_DEFAULT_SIZE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemon404@bbvm:~/dev/f/ffmpeg/tests/data/fate$ grep Seg *.err | |
h264-conformance-caba1_sva_b.err:Segmentation fault | |
h264-conformance-cabac_mot_fld0_full.err:Segmentation fault | |
h264-conformance-cama1_toshiba_b.err:Segmentation fault | |
h264-conformance-capcm1_sand_e.err:Segmentation fault | |
h264-conformance-capcmnl1_sand_e.err:Segmentation fault | |
h264-conformance-cvbs3_sony_c.err:Segmentation fault | |
h264-conformance-frext-hpcv_brcm_a.err:Segmentation fault | |
h264-conformance-frext-hpcvfl_bcrm_a.err:Segmentation fault | |
h264-conformance-nrf_mw_e.err:Segmentation fault |
OlderNewer