no actually im already adding a program and then trying to access it.
here
AVProgram *prog1=NULL;
prog1=av_new_program(oc,2);
// prog1=oc->programs[0];
(oc->programs[0])=prog1;
// prog1->nb_stream_indexes=2;
void *tmp1;
tmp1 = av_realloc(prog1->stream_index, sizeof(unsigned
int)*(prog1->nb_stream_indexes+1));
prog1->stream_index=tmp1;
prog1->stream_index[prog1->nb_stream_indexes++] = 0;
// prog1=oc->programs[0];
(oc->programs[0])=prog1;
but no matter how many programs i initialize i cant see it in my debug
variables..just the addressess(pointer) change
--
View this message in context:
http://n4.nabble.com/is-struct-AVProgram-faulty-tp1569134p1569227.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