Hi everybody,
I'm facing with a problem regarding the use of the libavcodec library.
I compiled dlls, using latest repository version, for my target (PXA270 
ARM9) running
windows CE. The cross compiler i used is arm-wince-cegcc in the environment
MSYS + MINGW.

My program decodes a MP4 video and displayes it.

My problem executing the program (almost copyed by apiexample.c) is that 
sometimes
the call to "avcodec_alloc_context" throws an exception.

I saw that it is a problem with address alignment (i used memalignhack 
to compile) during
a str (store) o a strd (store double).

The strange thing is that this occours only sometimes, and when it 
doesn't happend my video is
decoded and displayed correctly for hours and hours and there are no 
more problems.

Can it be a compilation problem?
Why only that call fails? I saw that the internal av_malloc exits with 
success...
The one that fail is the "av_opt_set_defaults2" inside 
"avformat_get_context_defaults" when it
assigns double:

...
            case FF_OPT_TYPE_FLOAT: {
                double val;
                val = opt->default_val;
                av_set_double(s, opt->name, val);
            }
....

Any ideas?
Thank you thousands!

Francesco Pellegrino

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to