I guess new position must be expressed in stream time units:
// iNewPosition is in seconds
int64_t timeStamp = iNewPosition * pFormatCtx-streams[iStreamIndex]-
time_base.den;
av_seek_frame(pFormatCtx, iStreamIndex, timeStamp, AVSEEK_FLAG_ANY);
--
You received this message because you are
how can I prevent (or at least minimize) the delay
When AudioTrack object is created, buffer size is passed into a
constructor among other parameters.
AudioTrack won't start playing until you write at least that amount of
data into it.
I presume that in your case chosen buffer size is
Try the following ugly technique to customize your options menu:
getLayoutInflater().setFactory(new Factory() {
public View onCreateView (String name, final Context context,
AttributeSet attrs) {
if(name.equalsIgnoreCase(com.android.internal.view.menu.IconMenuItemView))
{
UDP works well on emulators and devices.
DatagramSocket socket = new DatagramSocket(port);
byte[] data = new byte[1000];
DatagramPacket datagram = new DatagramPacket(data, 0, data.length,
null, 0);
socket.receive(datagram);
On 18 мар, 03:20, Miguel Morales therevolti...@gmail.com wrote:
I've
if(avcodec_open(pCodecCtx, pCodec)0)
return -1; // Could not open codec
On Feb 5, 9:15 pm, emymrin emym...@gmail.com wrote:
Try to instrument avcodec_open and anything that it calls with
__android_log_print to get an idea about what is wrong.
On 5 фев, 19:03, cervello eceooz
Try to instrument avcodec_open and anything that it calls with
__android_log_print to get an idea about what is wrong.
On 5 фев, 19:03, cervello eceooz...@gmail.com wrote:
I'm trying to decode a video but in my code I think there is a problem
about avcodec_find decoder().. I control it with
Consider using AlarmManager.
On 23 дек, 01:54, optimusgeek choongb...@gmail.com wrote:
I use CountDownTimer for counting 24hours with 1minute interval.
but It seems that the onTick() not called when device in deep sleep.
When I check the millisUntilFinished value after activating device,
The
7 matches
Mail list logo