[Libav-user] *** stack smashing detected *** AVPacket

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Libav-user] *** stack smashing detected *** AVPacket

יוסף אלון
When using the following:
AVPacket avpkt;
  av_init_packet(&avpkt);
//av_new_packet(&avpkt, 1000);
  av_free_packet(&avpkt);

I get: *** stack smashing detected ***: "The project location" terminated

How can i fix it?



--
Yosef Alon

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: *** stack smashing detected *** AVPacket

Anton Shekhovtsov

2017-04-04 17:56 GMT+03:00 יוסף אלון <[hidden email]>:
When using the following:
AVPacket avpkt;
  av_init_packet(&avpkt);
//av_new_packet(&avpkt, 1000);
  av_free_packet(&avpkt);

I get: *** stack smashing detected ***: "The project location" terminated

How can i fix it?



--
Yosef Alon

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user


avpkt.data = 0

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: *** stack smashing detected *** AVPacket

יוסף אלון
Not working:
I tried:
AVPacket avpkt;
 avpkt.data = 0;
 av_init_packet(&avpkt);
 
 av_free_packet(&avpkt);

and also tried:
AVPacket avpkt;
 
 av_init_packet(&avpkt);
 avpkt.data = 0;
 av_free_packet(&avpkt);


 

2017-04-04 18:00 GMT+03:00 Anton Shekhovtsov <[hidden email]>:

2017-04-04 17:56 GMT+03:00 יוסף אלון <[hidden email]>:
When using the following:
AVPacket avpkt;
  av_init_packet(&avpkt);
//av_new_packet(&avpkt, 1000);
  av_free_packet(&avpkt);

I get: *** stack smashing detected ***: "The project location" terminated

How can i fix it?



--
Yosef Alon

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user


avpkt.data = 0

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user




--
בברכה, יוסף אלון
050-4916740

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: *** stack smashing detected *** AVPacket

יוסף אלון
I Solved this by creating my own

void av_init_packet2(AVPacket *pkt)
{
    pkt->pts                  = AV_NOPTS_VALUE;
    pkt->dts                  = AV_NOPTS_VALUE;
    pkt->pos                  = -1;
    pkt->duration             = 0;
    pkt->flags                = 0;
    pkt->stream_index         = 0;
    pkt->buf                  = NULL;
    pkt->side_data            = NULL;
    pkt->side_data_elems      = 0;
}


Instead Of

void av_init_packet(AVPacket *pkt)
{
    pkt->pts                  = AV_NOPTS_VALUE;
    pkt->dts                  = AV_NOPTS_VALUE;
    pkt->pos                  = -1;
    pkt->duration             = 0;
#if FF_API_CONVERGENCE_DURATION
FF_DISABLE_DEPRECATION_WARNINGS
    pkt->convergence_duration = 0;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
    pkt->flags                = 0;
    pkt->stream_index         = 0;
    pkt->buf                  = NULL;
    pkt->side_data            = NULL;
    pkt->side_data_elems      = 0;
}

2017-04-04 18:09 GMT+03:00 יוסף אלון <[hidden email]>:
Not working:
I tried:
AVPacket avpkt;
 avpkt.data = 0;
 av_init_packet(&avpkt);
 
 av_free_packet(&avpkt);

and also tried:
AVPacket avpkt;
 
 av_init_packet(&avpkt);
 avpkt.data = 0;
 av_free_packet(&avpkt);


 

2017-04-04 18:00 GMT+03:00 Anton Shekhovtsov <[hidden email]>:

2017-04-04 17:56 GMT+03:00 יוסף אלון <[hidden email]>:
When using the following:
AVPacket avpkt;
  av_init_packet(&avpkt);
//av_new_packet(&avpkt, 1000);
  av_free_packet(&avpkt);

I get: *** stack smashing detected ***: "The project location" terminated

How can i fix it?



--
Yosef Alon

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user


avpkt.data = 0

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user




--
בברכה, יוסף אלון
050-4916740


--
בברכה, יוסף אלון
050-4916740

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: *** stack smashing detected *** AVPacket

Anton Shekhovtsov


2017-04-04 18:20 GMT+03:00 יוסף אלון <[hidden email]>:
I Solved this by creating my own

void av_init_packet2(AVPacket *pkt)
{
    pkt->pts                  = AV_NOPTS_VALUE;
    pkt->dts                  = AV_NOPTS_VALUE;
    pkt->pos                  = -1;
    pkt->duration             = 0;
    pkt->flags                = 0;
    pkt->stream_index         = 0;
    pkt->buf                  = NULL;
    pkt->side_data            = NULL;
    pkt->side_data_elems      = 0;
}


Instead Of

void av_init_packet(AVPacket *pkt)
{
    pkt->pts                  = AV_NOPTS_VALUE;
    pkt->dts                  = AV_NOPTS_VALUE;
    pkt->pos                  = -1;
    pkt->duration             = 0;
#if FF_API_CONVERGENCE_DURATION
FF_DISABLE_DEPRECATION_WARNINGS
    pkt->convergence_duration = 0;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
    pkt->flags                = 0;
    pkt->stream_index         = 0;
    pkt->buf                  = NULL;
    pkt->side_data            = NULL;
    pkt->side_data_elems      = 0;
}

2017-04-04 18:09 GMT+03:00 יוסף אלון <[hidden email]>:
Not working:
I tried:
AVPacket avpkt;
 avpkt.data = 0;
 av_init_packet(&avpkt);
 
 av_free_packet(&avpkt);

and also tried:
AVPacket avpkt;
 
 av_init_packet(&avpkt);
 avpkt.data = 0;
 av_free_packet(&avpkt);


 

2017-04-04 18:00 GMT+03:00 Anton Shekhovtsov <[hidden email]>:

2017-04-04 17:56 GMT+03:00 יוסף אלון <[hidden email]>:
When using the following:
AVPacket avpkt;
  av_init_packet(&avpkt);
//av_new_packet(&avpkt, 1000);
  av_free_packet(&avpkt);

I get: *** stack smashing detected ***: "The project location" terminated

How can i fix it?



--
Yosef Alon

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user


avpkt.data = 0

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user




--
בברכה, יוסף אלון
050-4916740


--
בברכה, יוסף אלון
050-4916740

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user


You probably have alignment / compiler settings conflict.

_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: *** stack smashing detected *** AVPacket

강구철
In reply to this post by Anton Shekhovtsov

Hi I have a question about encoding audio into AAC 4.0 on Android. I set my channel count to 4 and my channel layout to AV_CH_LAYOUT_4POINT0 but when I try to configure my filter graph (with that as an output) I get

 

FFMPEG Error Level:16 Log: Output channel layout '5 channels (FL+FR+BR+FLC+SL)' is not supported

 

Which doesn't make sense, mainly because I set it to 4 channel. Am I using this incorrectly?

 

Thanks,

Michael

 

 

From: Libav-user [mailto:[hidden email]] On Behalf Of Anton Shekhovtsov
Sent: Wednesday, April 05, 2017 12:01 AM
To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
Subject: Re: [Libav-user] *** stack smashing detected *** AVPacket

 

 

2017-04-04 17:56 GMT+03:00 יוסף אלון <[hidden email]>:

When using the following:

AVPacket avpkt;
  av_init_packet(&avpkt);
//av_new_packet(&avpkt, 1000);
  av_free_packet(&avpkt);

I get: *** stack smashing detected ***: "The project location" terminated

 

How can i fix it?




--

Yosef Alon


_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user


avpkt.data = 0


_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user
Loading...