Java tutorial
//package com.java2s; public class Main { public static final long AV_NOPTS_VALUE = Long.MIN_VALUE; public static String av_ts_make_string(long ts) { if (ts == AV_NOPTS_VALUE) return "NOPTS"; else return Long.toHexString(ts); } }