Skip to content

Instantly share code, notes, and snippets.

@quink-black
quink-black / H.264参数集处理.md
Last active June 13, 2025 04:00
H.264参数集处理

H.264参数集处理

[toc]

摘要

介绍H.264参数集与几种字节流格式的关系,以及in-band/out-of-band传递参数集的方式与容器格式、传输协议的关系,描述MP4格式、FLV格式处理参数集的一些兼容性问题。

@iamalbert
iamalbert / Assert.hpp
Last active June 5, 2022 04:51
C++ SMART ASSERT
#define __ASSERT1__(x) __REPORT__(x).__ASSERT2__
#define __ASSERT2__(x) __REPORT__(x).__ASSERT1__
#define __REPORT__(x) report(#x,(x))
#define ASSERT(cond, msg) if(!(cond)) Assert(#cond,msg,__FILE__,__LINE__).__ASSERT1__
#include <iostream>
struct Assert {
template<class T>
@evantoli
evantoli / GitConfigHttpProxy.md
Last active December 2, 2025 09:20
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@sp-miguel-ibero
sp-miguel-ibero / JniObject.cpp
Last active February 12, 2020 14:32
Social Point JniObject
#include "JniObject.hpp"
#include <algorithm>
Jni::Jni():
_java(nullptr), _env(nullptr)
{
}
Jni::Jni(const Jni& other)