Then with the code of my first mail my app should work ok?
tried all the other possibilities suggested, except your last suggestion
wl2776 about use av_alloc_put_byte() because I don't see clearlyhow it
works.
ByteIOContext *av_alloc_put_byte(
unsigned char *buffer,
int buffer_size,
int write_flag, //???
void *opaque, //???
int (*read_packet)(void *opaque, uint8_t *buf, int
buf_size), //???
int (*write_packet)(void *opaque, uint8_t *buf, int
buf_size), //???
int64_t (*seek)(void *opaque, int64_t offset, int
whence)); //???
2010/2/5 wl2776 <[email protected]>
>
> Anyway, your code should work.
> My application has similar code, and it works.
>
> The reason, that the libav doesn't decode the first supplied frame, could
> be
> in the interframe compression.
> That is, this frame could depend on previous ones, which don't exist in
> your
> application.
>
> Try repeat the calls with the new portions of data. When I-frame will come,
> it will be decoded, and all subsequent frames also.
>
> You should read elsewhere about I, P and B-frames.
> --
> View this message in context:
> http://n4.nabble.com/H264-decoding-tp1468742p1469981.html
> Sent from the libav-users mailing list archive at Nabble.com.
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
--
Miguel Angel Arcos
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user