mirror of https://github.com/sipwise/rtpengine.git
closes #534 Change-Id: I02ca8e2e3cbe6193705b34f6f2df09205b283022changes/44/20944/1
parent
e0cdf74ac5
commit
10d9acda3f
@ -0,0 +1,9 @@
|
||||
#include <libavutil/frame.h>
|
||||
#include <libavutil/channel_layout.h>
|
||||
#include "compat.h"
|
||||
|
||||
INLINE void fix_frame_channel_layout(AVFrame *frame) {
|
||||
if (frame->channel_layout)
|
||||
return;
|
||||
frame->channel_layout = av_get_default_channel_layout(av_frame_get_channels(frame));
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
#include <libavutil/frame.h>
|
||||
#include <libavutil/channel_layout.h>
|
||||
#include "compat.h"
|
||||
|
||||
INLINE void fix_frame_channel_layout(AVFrame *frame) {
|
||||
if (frame->channel_layout)
|
||||
return;
|
||||
frame->channel_layout = av_get_default_channel_layout(frame->channels);
|
||||
}
|
||||
Loading…
Reference in new issue