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 subsc
> 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 siginifica
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 wrote:
> I've read people on the inter
x = avcodec_alloc_context();
> // Open codec
> if(avcodec_open(pCodecCtx, pCodec)<0)
> return -1; // Could not open codec
>
> On Feb 5, 9:15 pm, emymrin wrote:
>
>
>
>
>
>
>
> > Try to instrument avcodec_open and anything that it
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 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 log_message and on
>
Consider using AlarmManager.
On 23 дек, 01:54, optimusgeek 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 value was not mat
7 matches
Mail list logo