File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/AvTranscoder/data/decoded Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ void AudioFrame::allocateData()
110
110
os << " channel layout = " << av_get_channel_name (_frame->channels ) << " , " ;
111
111
os << " nb samples = " << _frame->nb_samples << " , " ;
112
112
os << " sample format = " << getSampleFormatName (_desc._sampleFormat );
113
- throw std::runtime_error (os.str ());
113
+ LOG_ERROR (os.str ())
114
+ throw std::bad_alloc ();
114
115
}
115
116
_dataAllocated = true ;
116
117
}
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ void Frame::allocateAVFrame()
40
40
#endif
41
41
if (_frame == NULL )
42
42
{
43
- throw std::runtime_error (" Unable to allocate an empty Frame." );
43
+ LOG_ERROR (" Unable to allocate an empty Frame." )
44
+ throw std::bad_alloc ();
44
45
}
45
46
}
46
47
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ void VideoFrame::allocateData()
93
93
os << " width = " << _frame->width << " , " ;
94
94
os << " height = " << _frame->height << " , " ;
95
95
os << " pixel format = " << getPixelFormatName (_desc._pixelFormat );
96
- throw std::runtime_error (os.str ());
96
+ LOG_ERROR (os.str ())
97
+ throw std::bad_alloc ();
97
98
}
98
99
_dataAllocated = true ;
99
100
}
You can’t perform that action at this time.
0 commit comments